Footnotes

  • Yes, that sounds a lot like _co_routines, but goroutines are slightly different as we will see in . [return]
  • http://play.golang.org. [return]
  • http://golang.org/doc/ itself is served by godoc. [return]
  • When building from source it must be installed separately with go get golang.org/x/tools/cmd/godoc. [return]
  • The word iota is used in a common English phrase, ‘not one iota’, meaning ‘not the slightest difference’, in reference to a phrase in the New Testament: “until heaven and earth pass away, not an iota, not a dot, will pass from the Law.” [iota][return]
  • You can use the command godoc builtin to read the online documentation about the built-in types and functions. [return]
  • Always rainy in March anyway. [return]
  • This is a motto of Go; “Do more with less code”. [return]
  • A function literal is sometimes called a closure . [return]
  • Modified from a presentation of Eleanor McHugh. [return]
  • The descriptions are copied from the packages’ go doc. [return]
  • The downside is that you know have to worry about garbage collection. If you really need it garbage collection in a Go program can be disabled by running it with the environment variable GOGC set to off: GOGC=off ./myprogram. [return]
  • Taking the address of a composite literal tells the compiler to allocate it on the heap, not the stack. [return]
  • Also see in this chapter. [return]
  • The following text is partly from [go_interfaces]. [return]
  • Text copied from [effective_go]. [return]
  • go doc reflect [return]
  • In case you are wondering, 192.0.32.10 and 2620:0:2d0:200::10 are http://www.example.org. [return]
  • The variable conn also implements a close method, this really makes it an io.ReadWriteCloser. [return]