meta data for this page
This is an old revision of the document!
Installation
apt-get install golang-go gocode golang-golang-x-tools golint
IDE
GoClipse plugin for Eclipse. Installation: GoClipse installation
closures
func main() { add := func(x, y int) int { return x + y } fmt.Println(add(1,1)) }
func makeEvenGenerator() func() uint { i := uint(0) return func() (ret uint) { ret = i i += 2 return } }