语言
Go 快速参考
Go 快速参考 的可打印速查表,适合快速查阅、学习和桌边参考
示例
速查表包含什么
- 基础
- 变量与类型
- 函数
- 控制流
- 结构体与方法
- 接口
- Goroutine 与 Channel
- 错误处理
- Slice 与 Map
- 包与导入
- 泛型
- 测试
Hello World
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
运行与构建
go run main.go # compile and run
go build -o app . # compile to binary
go test ./... # run all tests
模块初始化
go mod init github.com/user/project
go mod tidy # sync dependencies
下载完整速查表,获取所有章节的打印排版版本
下载 PDF下载