github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/blog/content/first-class-functions-in-go-and-new-go.article (about) 1 "First Class Functions in Go" 2 30 Jun 2011 3 Tags: codewalk, function, technical 4 5 Andrew Gerrand 6 7 * Introduction 8 9 Programmers new to Go are often surprised by its support for function types, functions as values, and closures. The [[http://golang.org/doc/codewalk/functions/][First Class Functions in Go]] code walk demonstrates these features with a simulation of the dice game [[http://en.wikipedia.org/wiki/Pig_(dice)][Pig]]. It is a pretty program that uses the language to great effect, and a fun read for Go beginners and veterans alike. 10 11 More resources are available at [[http://golang.org/doc/docs.html][golang.org]].