diff options
author | bnewbold <bryan@octopart.com> | 2012-04-08 14:48:29 -0400 |
---|---|---|
committer | bnewbold <bryan@octopart.com> | 2012-04-08 14:48:29 -0400 |
commit | 318b7eb135eff9239a94a8c01daec20e414b5db4 (patch) | |
tree | 1c3c4b0a52d832e2621b3d4ee13321db2e4441c1 | |
parent | e21c41d1ce771cf01772d8e70f44e95ce1606011 (diff) | |
download | knowledge-318b7eb135eff9239a94a8c01daec20e414b5db4.tar.gz knowledge-318b7eb135eff9239a94a8c01daec20e414b5db4.zip |
golang notes
-rw-r--r-- | software/golang.page | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/software/golang.page b/software/golang.page new file mode 100644 index 0000000..d1f961d --- /dev/null +++ b/software/golang.page @@ -0,0 +1,21 @@ + +Go Programming Language +========================= + +defer +--------- +``defer`` pushes a function call on to a local stack to be executed when the +enclosing function returns (either normally or due to a panic). The arguments +are evaluated at the time/position of the defer call, not when the defered +function itself is called (this is intuitive). + +The golang documentation gives the examples of closing file handles and +printing HTML footers (defer right after printing the header). + +Learning Resources +------------------- +In addition to the excellent dynamic Tour, documentation, and other things +listed on the golang.org front page: + +- [Network Programming with Go](http://jan.newmarch.name/go/) (unread) +- [http://go-lang.cat-v.org/] |