Created
August 30, 2018 16:42
-
-
Save pdk/01ea812ec9ca36ed89d0c34517916ff9 to your computer and use it in GitHub Desktop.
go consumer functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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