The Go Programming Language
Go
▽
文档 包 项目 帮助 博客

下一篇

Error handling and Go

上一篇

Profiling Go Programs

链接

  • golang.org
  • golang.org 中文版
  • 安装 Go
  • Go 指南
  • Go 文档
  • Go 邮件列表(英文)
  • Go 邮件列表(中文)
  • Go+ 社区
  • Go 在 Twitter

博客索引

Go 博客

"First Class Functions in Go"

2011/06/30

Programmers new to Go are often surprised by its support for function types, functions as values, and closures. The First Class Functions in Go code walk demonstrates these features with a simulation of the dice game Pig. 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.

Andrew Gerrand 编写

相关文章

  • HTTP/2 Server Push
  • Introducing HTTP Tracing
  • Generating code
  • Introducing the Go Race Detector
  • Go maps in action
  • go fmt your code
  • 组织 Go 代码
  • Debugging Go programs with the GNU Debugger
  • The Go image/draw package
  • The Go image package
  • 反射三法则
  • Error handling and Go
  • Profiling Go Programs
  • A GIF decoder: an exercise in Go interfaces
  • Introducing Gofix
  • Godoc: documenting Go code
  • Gobs of data
  • C? Go? Cgo!
  • JSON and Go
  • Go 切片:用法和本质
  • Go Concurrency Patterns: Timing out, moving on
  • Defer, Panic, and Recover
  • Share Memory By Communicating
  • JSON-RPC: a tale of interfaces

除特别注明外, 本页内容均采用知识共享-署名(CC-BY)3.0 协议授权,代码采用BSD协议授权。
服务条款 | 隐私政策 | 查看源码