blob: 788eb74e00cd4d48d4a8f19aa3493790d148c4ae [file] [log] [blame] [view]
---
title: First Class Functions in Go
date: 2011-06-30
by:
- Andrew Gerrand
tags:
- codewalk
- function
- technical
summary: Announcing a new Go codewalk, exploring first class functions.
---
Programmers new to Go are often surprised by its support for function types,
functions as values, and closures.
The [First Class Functions in Go](/doc/codewalk/functions/)
code walk demonstrates these features with a simulation of the dice game
[Pig](http://en.wikipedia.org/wiki/Pig_(dice)).
It is a pretty program that uses the language to great effect,
and a fun read for Go beginners and veterans alike.
More resources are available at [golang.org](/doc/docs.html).