Created
September 10, 2016 23:47
-
-
Save sspencer/ca1f7964d566200faabc5cb10c70cf34 to your computer and use it in GitHub Desktop.
Make function logging stand out
This file contains hidden or 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
// 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