# Mastering\_Go\_ZH\_CN

## Mastering\_Go\_ZH\_CN

- [介绍](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/readme.md)
- [\[0 前言\]](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/0-qian-yan.md)
- [00.1 前言](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/0-qian-yan/00.1.md)
- [00.2 面向读者](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/0-qian-yan/00.2-mian-xiang-du-zhe.md)
- [00.3 章节概览](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/0-qian-yan/00.3.md)
- [00.4 更多信息](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/0-qian-yan/00.4.md)
- [00.4.1 代码规范约定](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/0-qian-yan/00.4/00.4.1.md)
- [\[1 Go与操作系统\]](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/1-go-yu-cao-zuo-xi-tong.md)
- [01.1 本书结构](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/1-go-yu-cao-zuo-xi-tong/01.1.md)
- [01.2 Go的历史](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/1-go-yu-cao-zuo-xi-tong/01.2.md)
- [01.3 为什么是Go](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/1-go-yu-cao-zuo-xi-tong/01.3.md)
- [01.4 Go的优点](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/1-go-yu-cao-zuo-xi-tong/01.4.md)
- [01.4.1 Go是完美的么](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/1-go-yu-cao-zuo-xi-tong/01.4/01.4.1.md)
- [\[2 Go内部机制\]](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi.md)
- [02.1 本章概述](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.1.md)
- [02.2 编译器](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.2.md)
- [02.3 垃圾回收](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.3.md)
- [02.3.1 三色算法](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.3/02.3.1.md)
- [02.3.2 垃圾回收器背后的更多操作](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.3/02.3.2.md)
- [02.3.3 Unsafe code](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.3/02.3.3.md)
- [02.3.4 关于unsafe包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.3/02.3.4.md)
- [02.3.5 另一个usafe包的例子](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.3/02.3.5.md)
- [02.5 C中调用Go函数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.5.md)
- [02.5.1 Go Package](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.5/02.5.1.md)
- [02.5.2 C代码](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.5/02.5.2.md)
- [02.6 defer关键字](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.6.md)
- [02.7 Panic和Recover](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/2-go-nei-bu-ji-zhi/02.7.md)
- [\[3 Go基本数据类型\]](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing.md)
- [03.1 Go循环](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.1.md)
- [03.1.1 for循环](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.1/03.1.1.md)
- [03.1.2 while循环](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.1/03.1.2.md)
- [03.1.3 range关键字](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.1/03.1.3.md)
- [03.1.4 for循环代码示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.1/03.1.4.md)
- [03.3 Go切片](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.3.md)
- [03.3.1 切片基本操作](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.3/03.3.1.md)
- [03.3.2 切片的扩容](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.3/03.3.2.md)
- [03.3.3 字节切片](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.3/03.3.3.md)
- [03.3.4 copy()函数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.3/03.3.4.md)
- [03.3.5 多维切片](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.3/03.3.5.md)
- [03.3.6 使用切片的代码示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.3/03.3.6.md)
- [03.3.7 使用sort.Slice()排序](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.3/03.3.7.md)
- [03.4 Go 映射(map)](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.4-go-ying-she-map.md)
- [03.4.1 Map值为nil的坑](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.4-go-ying-she-map/03.4.1.md)
- [03.4.2 何时该使用Map?](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.4-go-ying-she-map/03.4.2.md)
- [03.5 Go 常量](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.5.md)
- [03.5.1 常量生成器：iota](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.5/03.5.1.md)
- [03.6 Go 指针](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.6.md)
- [03.7 时间与日期的处理技巧](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.7.md)
- [03.7.1 解析时间](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.7/03.7.1.md)
- [03.7.2 解析时间的代码示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.7/03.7.2.md)
- [03.7.3 解析日期](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.7/03.7.3.md)
- [03.7.4 解析日期的代码示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.7/03.7.4.md)
- [03.7.5 格式化时间与日期](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.7/03.7.5.md)
- [03.8 延伸阅读](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.8.md)
- [03.9 练习](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.9.md)
- [03.10 本章小结](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/3-go-ji-ben-shu-ju-lei-xing/03.10.md)
- [4 组合类型的使用](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0.md)
- [04.1 关于组合类型](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.1.md)
- [04.2 结构体](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.2.md)
- [04.2.1 结构体指针](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.2/04.2.1.md)
- [04.2.2 使用new关键字](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.2/04.2.2.md)
- [04.3 元组](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.3.md)
- [04.4 正则表达式与模式匹配](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.4.md)
- [04.4.1 理论知识](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.4/04.4.1.md)
- [04.4.2 简单的正则表达式示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.4/04.4.2.md)
- [04.4.3 高级的正则表达式示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.4/04.4.3.md)
- [04.4.4 正则匹配IPv4地址](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.4/04.4.4.md)
- [04.5 字符串](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.5.md)
- [04.5.1 rune是什么？](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.5/04.5.1.md)
- [04.5.2 关于Unicode的包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.5/04.5.2.md)
- [04.5.3 关于字符串处理的包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.5/04.5.3.md)
- [04.6 switch语句](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.6.md)
- [04.7 计算Pi的精确值](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.7.md)
- [04.8 实现简单的K-V存储](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.8.md)
- [04.9 延展阅读](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.9.md)
- [04.10 练习](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.10.md)
- [04.11 本章小结](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/04.0/04.11.md)
- [5 数据结构](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0.md)
- [05.1 图和节点](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.1.md)
- [05.2 算法复杂度](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.2.md)
- [05.3 Go 语言中的二叉树](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.3.md)
- [05.3.1 Go 语言实现二叉树](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.3/05.3.1.md)
- [05.3.2 二叉树的优点](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.3/05.3.2.md)
- [05.4 Go 语言中的哈希表](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.4.md)
- [05.4.1 Go 语言实现哈希表](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.4/05.4.1.md)
- [05.4.2 实现查找功能](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.4/05.4.2.md)
- [05.4.3 哈希表的优点](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.4/05.4.3.md)
- [05.5 Go 语言中的链表](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.5.md)
- [05.5.1 Go 语言实现链表](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.5/05.5.1.md)
- [05.5.2 链表的优点](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.5/05.5.2.md)
- [05.6 Go 语言中的双向链表](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.6.md)
- [05.6.1 Go 语言实现双向链表](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.6/05.6.1.md)
- [05.6.2 双向链表的优点](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.6/05.6.2.md)
- [05.7 Go 语言中的队列](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.7.md)
- [05.7.1 Go 语言实现队列](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.7/05.7.1.md)
- [05.8 Go 语言中的栈](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.8.md)
- [05.8.1 Go 语言实现栈](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.8/05.8.1.md)
- [05.9 container 包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.9.md)
- [05.9.1 使用 container/heap](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.9/05.9.1.md)
- [05.9.2 使用 container/list](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.9/05.9.2.md)
- [05.9.3 使用 container/ring](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.9/05.9.3.md)
- [05.10 生成随机数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.10.md)
- [05.10.1 生成随机字符串](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.10/05.10.1.md)
- [05.11 延展阅读](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.11.md)
- [05.12 练习](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.12.md)
- [05.13 本章小结](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/05.0/05.13.md)
- [6 Go package中不为人知的知识](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0.md)
- [06.1 关于Go packages](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0/06.1.md)
- [06.2 Go函数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0/06.2.md)
- [06.2.1 匿名函数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0/06.2/06.2.1.md)
- [06.2.2 多返回值的函数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0/06.2/06.2.2.md)
- [06.2.3 可命名的函数返回值](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0/06.2/06.2.3.md)
- [06.2.4 参数为指针的函数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0/06.2/06.2.4.md)
- [06.2.5 返回值为指针的函数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0/06.2/06.2.5.md)
- [06.2.6 闭包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0/06.2/06.2.6.md)
- [06.2.7 函数作为参数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0/06.2/06.2.7.md)
- [06.3 设计你的Go packages](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/06.0/06.3.md)
- [\[7 反射和接口\]](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou.md)
- [07.1 类型方法](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.1.md)
- [07.2 Go的接口](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.2.md)
- [07.3 类型断言](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.3.md)
- [07.4 设计接口](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.4.md)
- [07.4.1 接口的使用](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.4/07.4.1.md)
- [07.4.2 Switch用于类型判断](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.4/07.4.2.md)
- [07.5 反射](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.5.md)
- [07.5.1 使用反射的简单示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.5/07.5.1.md)
- [07.5.2 反射进阶](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.5/07.5.2.md)
- [07.5.3 反射的三个缺点](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.5/07.5.3.md)
- [07.6 Go的OOP思想](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.6.md)
- [07.7 延展阅读](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.7.md)
- [07.8 练习](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.8.md)
- [07.9 本章小结](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/7-fan-she-he-jie-kou/07.9.md)
- [8 Go UNIX系统编程](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0.md)
- [08.1 关于UNIX进程](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.1.md)
- [08.2 flag包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.2.md)
- [08.3 io.Reader和io.Writer接口](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.3.md)
- [08.3.1 缓冲和无缓冲的文件输入和输出](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.3/08.3.1.md)
- [08.4 bufio包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.4.md)
- [08.5 读取文本文件](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.5.md)
- [08.5.1 逐行读取文本文件](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.5/08.5.1.md)
- [08.5.2 逐词读取文本文件](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.5/08.5.2.md)
- [08.5.3 逐字符读取文本文件](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.5/08.5.3.md)
- [08.5.4 从/dev/random中读取](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.5/08.5.4.md)
- [08.6 从文件中读取所需的数据量](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.6.md)
- [08.7 为什么我们使用二进制格式](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.7.md)
- [08.8 读取CSV文件](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.8.md)
- [08.9 写入文件](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.9.md)
- [08.10 从磁盘加载和保存数据](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.10.md)
- [08.11 再看strings包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.11.md)
- [08.12 关于bytes包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.12.md)
- [08.13 文件权限](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.13.md)
- [08.14 处理Unix信号](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.14.md)
- [08.14.1 处理两种信号](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.14/08.14.1.md)
- [08.14.2 处理所有信号](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.14/08.14.2.md)
- [08.15 Unix管道编程](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.15.md)
- [08.16 遍历目录树](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.16.md)
- [08.17 使用ePBF](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.17.md)
- [08.18 关于syscall.PtraceRegs](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.18.md)
- [08.19 跟踪系统调用](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.19.md)
- [08.20 User ID和group ID](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.20.md)
- [08.21 其他资源](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.21.md)
- [08.22 练习](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.22.md)
- [08.23 总结](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/08.0/08.23.md)
- [9 并发-Goroutines,Channel和Pipeline](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0.md)
- [09.1 关于进程，线程和Go协程](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.1.md)
- [09.1.1 Go调度器](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.1/09.1.1.md)
- [09.1.2 并发与并行](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.1/09.1.2.md)
- [09.2 Goroutines](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.2.md)
- [09.2.1 创建一个Goroutine](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.2/09.2.1.md)
- [09.2.2 创建多个Goroutine](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.2/09.2.2.md)
- [09.3 优雅地结束goroutines](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.3.md)
- [09.3.1 当Add()和Done()的数量不匹配时会发生什么？](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.3/09.3.1.md)
- [09.4 Channel(通道)](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.4.md)
- [09.4.1 通道的写入](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.4/09.4.1.md)
- [09.4.2 从通道接收数据](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.4/09.4.2.md)
- [09.4.3 通道作为函数参数传递](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.4/09.4.3.md)
- [09.5 管道](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.5.md)
- [09.6 延展阅读](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.6.md)
- [09.7 练习](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.7.md)
- [09.8 本章小结](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/09.0/09.8.md)
- [10 Go 并发-进阶讨论](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0.md)
- [10.1 重温调度器](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.1.md)
- [10.1.1 环境变量 GOMAXPROCS](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.1/10.1.1.md)
- [10.2 select关键字](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.2.md)
- [10.3 goroutine超时检查的两种方式](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.3.md)
- [10.3.1 方式1](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.3/10.3.1.md)
- [10.3.2 方式2](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.3/10.3.2.md)
- [10.4 重温Channel（通道）](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.4.md)
- [10.4.1 信号通道](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.4/10.4.1.md)
- [10.4.2 可缓冲通道](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.4/10.4.2.md)
- [10.4.3 值为nil的通道](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.4/10.4.3.md)
- [10.4.4 传送channel的通道](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.4/10.4.4.md)
- [10.4.5 指定通道的执行顺序](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.4/10.4.5.md)
- [10.5 通过共享变量来共享内存](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.5.md)
- [10.5.1 sync.Mutex类型](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.5/10.5.1.md)
- [10.5.1.1 忘记解锁mutex的后果](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.5/10.5.1/10.5.1.1.md)
- [10.5.2 sync.RWMutex类型](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.5/10.5.2.md)
- [10.5.3 通过goroutine共享内存](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.5/10.5.3.md)
- [10.6 竞争状态](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.6.md)
- [10.7 关于context包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.7.md)
- [10.7.1 context使用的高级示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.7/10.7.1.md)
- [10.7.2 工作池](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.7/10.7.2.md)
- [10.8 延展阅读](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.8.md)
- [10.9 练习](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.9.md)
- [10.10 本章小结](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/10.0/10.10.md)
- [11 代码测试，优化及分析](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi.md)
- [11.1 本章使用的Go版本](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.1-ben-zhang-shi-yong-de-go-ban-ben.md)
- [11.1.1 1.10和1.9版本对比](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.1.1-1.10-he-1.9-ban-ben-dui-bi.md)
- [11.2 安装beta或者RC版本](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.2-an-zhuang-beta-huo-zhe-rc-ban-ben.md)
- [11.3 关于优化](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.3-guan-yu-you-hua.md)
- [11.4 优化你的Go代码](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.4-you-hua-ni-de-go-dai-ma.md)
- [11.5 分析Go代码](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.5-fen-xi-go-dai-ma.md)
- [11.5.1 标准库net/http/pprof](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.5-fen-xi-go-dai-ma/11.5.1-biao-zhun-ku-nethttppprof.md)
- [11.5.2 代码分析示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.5-fen-xi-go-dai-ma/11.5.2-dai-ma-fen-xi-shi-li.md)
- [11.5.3 用于分析的第三方包](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.5-fen-xi-go-dai-ma/11.5.3-yong-yu-fen-xi-de-di-san-fang-bao.md)
- [11.5.4 Go分析器的web接口](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.5-fen-xi-go-dai-ma/11.5.4-go-fen-xi-qi-de-web-jie-kou.md)
- [11.5.4.1 使用web接口的分析示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.5-fen-xi-go-dai-ma/11.5.4-go-fen-xi-qi-de-web-jie-kou/11.5.4.1-shi-yong-web-jie-kou-de-fen-xi-shi-li.md)
- [11.5.4.2 Graphviz快览](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.5-fen-xi-go-dai-ma/11.5.4-go-fen-xi-qi-de-web-jie-kou/11.5.4.2-graphviz-kuai-lan.md)
- [11.6 go tool的代码追踪](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.6-go-tool-de-dai-ma-zhui-zong.md)
- [11.7 测试](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.7-ce-shi.md)
- [11.7.1 编程测试代码](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.7-ce-shi/11.7.1-bian-cheng-ce-shi-dai-ma.md)
- [11.8 基准测试](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.8-ji-zhun-ce-shi.md)
- [11.8.1 基准测试示例](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.8-ji-zhun-ce-shi/11.8.1-ji-zhun-ce-shi-shi-li.md)
- [11.8.2 错误的基准测试函数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.8-ji-zhun-ce-shi/11.8.2-cuo-wu-de-ji-zhun-ce-shi-han-shu.md)
- [11.9 基准测试的缓冲写入](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.9-ji-zhun-ce-shi-de-huan-chong-xie-ru.md)
- [11.10 揪出隐藏的代码](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.10-jiu-chu-yin-cang-de-dai-ma.md)
- [11.11 交叉编译](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.11-jiao-cha-bian-yi.md)
- [11.12 创建示例函数](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.12-chuang-jian-shi-li-han-shu.md)
- [11.13 生成文档](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.13-sheng-cheng-wen-dang.md)
- [11.14 延展阅读](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.14-yan-zhan-yue-du.md)
- [11.15 练习](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.15-lian-xi.md)
- [11.16 本章小结](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/11-dai-ma-ce-shi-you-hua-ji-fen-xi/11.16-ben-zhang-xiao-jie.md)
- [12 Go网络编程基础](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0.md)
- [12.1 关于net/http,net和http.RoundTripper](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.1.md)
- [12.1.1 http.Response类型](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.1/12.1.1.md)
- [12.1.2 http.Request类型](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.1/12.1.2.md)
- [12.1.3 http.Transport类型](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.1/12.1.3.md)
- [12.2 关于TCP/IP](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.2.md)
- [12.3 关于IPv4和IPv6](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.3.md)
- [12.4 命令行工具netcat](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.4.md)
- [12.5 读取网络接口的配置文件](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.5.md)
- [12.6 实现DNS查询](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.6.md)
- [12.6.1 获取域名的 NS记录](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.6/12.6.1.md)
- [12.6.2 获取域名的 MX 记录](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.6/12.6.2.md)
- [12.7 Go实现web服务器](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.7.md)
- [12.7.1 分析HTTP服务](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.7/12.7.1.md)
- [12.7.2 用Go创建网站](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.7/12.7.2.md)
- [12.8 追踪 HTTP](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.8.md)
- [12.8.1 测试 HTTP handler](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.8/12.8.1.md)
- [12.9 Go实现web客户端](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.9.md)
- [12.9.1 Go web客户端进阶](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.9/12.9.1.md)
- [12.10 HTTP连接超时](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.10.md)
- [12.10.1 SetDeadline 介绍](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.10/12.10.1.md)
- [12.10.2 服务端设置超时时间](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.10/12.10.2.md)
- [12.10.3 设置超时的另外一种方法](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.10/12.10.3.md)
- [12.11 抓包工具Wireshark和tshark](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.11.md)
- [12.12 延展阅读](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.12.md)
- [12.13 练习](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.13.md)
- [12.14 本章小结](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/12.0/12.14.md)
- [13 网络编程 - 构建服务器与客户端](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0.md)
- [13.1 Go 标准库-net](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.1.md)
- [13.2 TCP 客户端](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.2.md)
- [13.2.1 另一个版本的 TCP 客户端](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.2/13.2.1.md)
- [13.3 TCP 服务器](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.3.md)
- [13.3.1 另一个版本的 TCP 服务器](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.3/13.3.1.md)
- [13.4 UDP 客户端](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.4.md)
- [13.5 UDP 服务器](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.5.md)
- [13.6 并发 TCP 服务器](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.6.md)
- [13.6.1 简洁的并发TCP服务器](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.6/13.6.1.md)
- [13.7 远程调用（RPC）](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.7.md)
- [13.7.1 RPC 客户端](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.7/13.7.1.md)
- [13.7.2 RPC 服务器](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.7/13.7.2.md)
- [13.8 底层网络编程](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.8.md)
- [13.8.1 获取ICMP数据](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.8/13.8.1.md)
- [13.9 接下来的任务](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.9.md)
- [13.10 延展阅读](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.10.md)
- [13.11 练习](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.11.md)
- [13.12 本章小节](https://wskdsgcf.gitbook.io/mastering-go-zh-cn/13.0/13.12.md)
