summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bryan@octopart.com>2012-04-08 14:48:29 -0400
committerbnewbold <bryan@octopart.com>2012-04-08 14:48:29 -0400
commit318b7eb135eff9239a94a8c01daec20e414b5db4 (patch)
tree1c3c4b0a52d832e2621b3d4ee13321db2e4441c1
parente21c41d1ce771cf01772d8e70f44e95ce1606011 (diff)
downloadknowledge-318b7eb135eff9239a94a8c01daec20e414b5db4.tar.gz
knowledge-318b7eb135eff9239a94a8c01daec20e414b5db4.zip
golang notes
-rw-r--r--software/golang.page21
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/]