summaryrefslogtreecommitdiff
path: root/doc/codewalk/pig.go
Commit message (Collapse)AuthorAgeFilesLines
* doc/codewalk: gofmt pig.goRuss Cox2013-01-311-1/+1
| | | | | | R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7221079
* doc/codewalk/functions.xml: Fix broken function examplesJohn DeNero2012-01-031-3/+0
| | | | | | | | I removed the broken function comparison example and fixed a code highlighting regexp. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5501078
* renaming_4: gofix -r everything/but/src/pkgRob Pike2011-11-081-1/+1
| | | | | | R=rsc CC=golang-dev https://golang.org/cl/5338043
* A codewalk through a simple program that illustrates several aspects of Go ↵John DeNero2011-04-071-0/+124
functions: function objects, higher-order functions, variadic functions, tail recursion, etc. The example program simulates the game of Pig, a dice game with simple rules but a nontrivial solution. R=adg, rsc, iant2, r CC=golang-dev https://golang.org/cl/4306045