Skip to content

Instantly share code, notes, and snippets.

@sspencer
Created September 10, 2016 23:47
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 sspencer/ca1f7964d566200faabc5cb10c70cf34 to your computer and use it in GitHub Desktop.
Save sspencer/ca1f7964d566200faabc5cb10c70cf34 to your computer and use it in GitHub Desktop.
Make function logging stand out
// Golang UK Conference 2016 - Mat Ryer - Idiomatic Go Tricks
func foo() error {
log.Println("----------")
defer log.Println("----------")
// ... do stuff ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment