As per my New Year's resolution, I've been learning to program in Go and reading The Go Programming Language. On page 141 of the book, there are a couple of code examples to explain scoping rules and how variables are bound to anonymous functions. This short post is just me making sure I grok what's in the book and sharing in case its helpful to anyone else.