编程那些事儿
文档
AI
C
CheatSheet
Cpp
Git
Go
Java
Linux
Philosophy
JavaScript
Python
TypeScript
CSS
Rust
Light
Dark
Auto
Go
标准库基础
标准库基础
1分钟内可阅读完
第1章:程序从 main 开始—— builtin 包
第2章:和世界说话——fmt 包
第3章:程序出错怎么办——errors 包与 panic/recover
第4章:让程序响应命令行——flag 包与 os 基础
第5章:放数据的容器——container/heap、container/list、container/ring
第6章:泛型时代的基础工具——cmp、maps、slices、sort、strconv
第 7 章:数学运算——math、math/big、math/bits、math/cmplx
第 8 章:和时间打交道——time 包 ⭐
第9章:随机数——math/rand、crypto/rand
第10章:字符是怎么存储的——Unicode 和 Unicode/UTF8
第11章:字符串操作——strings 包
第 12 章:字节切片操作——bytes 包
第13章:文本扫描与分词——bufio 包
第 14 章:正则表达式——regexp 包
第15章:IO 框架——io 和 io/fs 包
第 16 章:文件系统操作——os 包
第 17 章:路径处理——path 和 path/filepath
第18章:JSON 编码——encoding/json
第 19 章:其他数据格式——encoding 包全系列
第 20 章:网络基础——net 包
第 21 章:HTTP 服务端——net/http
第 22 章:HTTP 客户端——net/http(续)
第23章:URL、HTML 与 RPC
第 24 章:上下文管理——context 包
第 25 章:Goroutine 与 Channel ⭐
第26章:同步原语——sync 包
第27章:原子操作——sync/atomic
第 28 章:单元测试——testing 包
第 29 章:反射——reflect 包
第30章:图像处理——image 包
第31章:文本索引——index/suffixarray 包
第32章:迭代器——iter 包(Go 1.23+)
第33章:压缩——compress 系列
第 34 章:归档——archive 系列
第 35 章:密码学基础——crypto 包全览
第36章:对称加密与哈希——crypto/aes、crypto/cipher、hash/*
第 37 章 非对称加密与签名
第38章:TLS 与证书——crypto/tls、crypto/x509
第39章:数据库访问——database/sql
第 40 章:运行时信息——runtime 包
第41章:日志系统——log 和 log/slog
第42章:Go 词法分析——go/token、go/scanner
第43章:Go 语法树——go/ast、go/parser
第44章:代码生成与检查——go/printer、go/format、go/doc、go/types、go/build
第45章:调试信息——debug/dwarf、debug/elf、debug/macho、debug/pe
第 46 章:系统调用——syscall 包
第 47 章:插件与 CGO
最后修改 March 30, 2026:
新增 Go 标准库基础 教程 (acbc3f6)