summaryrefslogtreecommitdiff
path: root/doc/codewalk/pig.go
Commit message (Collapse)AuthorAgeFilesLines
* doc: remove all docs not tied to distributionRuss Cox2021-02-161-121/+0
| | | | | | | | | | | | | | | | | | They have moved to x/website in CL 291693. The docs that are left are the ones that are edited at the same time as development in this repository and are tied to the specific version of Go being developed. Those are: - the language spec - the memory model - the assembler manual - the current release's release notes Change-Id: I437c4d33ada1b1716b1919c3c939c2cacf407e83 Reviewed-on: https://go-review.googlesource.com/c/go/+/291711 Trust: Russ Cox <rsc@golang.org> Trust: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
* 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