Skip to content

Instantly share code, notes, and snippets.

@pdk
Created August 30, 2018 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdk/01ea812ec9ca36ed89d0c34517916ff9 to your computer and use it in GitHub Desktop.
Save pdk/01ea812ec9ca36ed89d0c34517916ff9 to your computer and use it in GitHub Desktop.
go consumer functions
func LogError(..., err error) (..., error) {
if err != nil {
log.Printf("%s", err)
}
return ..., err
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment