Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Created November 27, 2021 07:46
Show Gist options
  • Save agusrichard/c8266d6bfd06f8a2da9782b5d65e6868 to your computer and use it in GitHub Desktop.
Save agusrichard/c8266d6bfd06f8a2da9782b5d65e6868 to your computer and use it in GitHub Desktop.
result1, err := functionOne()
if err != nil {
return errors.Wrap(err, "functionOne")
}
result2, err := functionTwo()
if err != nil {
return errors.Wrap(err, "functiontwo")
}
// ... more function calling in here
return result, nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment