Skip to content

Instantly share code, notes, and snippets.

Created September 20, 2021 11:50
What would you like to do?
Go Error Syntax Variations
if val, ok := data[“key”]; ok {
// the key/value in the map exists
if gz, err := zlib.NewReader(base64decoder); err != nil {
return err
if err := decoder.Decode(&t); err != nil {
return err
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment