summaryrefslogtreecommitdiffstats
path: root/software/golang.page
blob: 729b6e5ea05ceed3147494cd74a119bc424c484d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

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/]
- [Dr Dobbs tutorial](http://www.drdobbs.com/open-source/go-tutorial-object-orientation-and-gos-s/240005402)

Other Resources
------------------

- [GoCI](http://goci.me) (continuous integration)