Created
February 7, 2018 06:22
-
-
Save tomtsang/bfe9abb1ea97ae57684254ce6eb090c4 to your computer and use it in GitHub Desktop.
golang-err-ok-pattern
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
if value, ok := readData(); ok { | |
… | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment