{"version":1,"pages":[{"id":"-LLCnOhqKwHYlh163YZS","title":"Introduction","pathname":"/the-way-to-go-zh-cn","siteSpaceId":"sitesp_6rAZ0","description":""},{"id":"-LLCnyTbnMCxDvUwg6TN","title":"前言","pathname":"/the-way-to-go-zh-cn/qian-yan","siteSpaceId":"sitesp_6rAZ0","description":""},{"id":"-LLCnyTehbfsGU5dlKpq","title":"第1章：Go 语言的起源，发展与普及","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-1-zhang-go-yu-yan-de-qi-yuan-fa-zhan-yu-pu-ji","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"}]},{"id":"-LLCnyTf30P4G3xR5fqc","title":"起源与发展","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-1-zhang-go-yu-yan-de-qi-yuan-fa-zhan-yu-pu-ji/01.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第1章：Go 语言的起源，发展与普及"}]},{"id":"-LLCnyTguzT-rEsIPC35","title":"语言的主要特性与发展的环境和影响因素","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-1-zhang-go-yu-yan-de-qi-yuan-fa-zhan-yu-pu-ji/01.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第1章：Go 语言的起源，发展与普及"}]},{"id":"-LLCnyThniZEXiGMQBK9","title":"第2章：安装与运行环境","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-2-zhang-an-zhuang-yu-yun-hang-huan-jing","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"}]},{"id":"-LLCnyTitrjBP4kyuq4N","title":"平台与架构","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-2-zhang-an-zhuang-yu-yun-hang-huan-jing/02.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第2章：安装与运行环境"}]},{"id":"-LLCnyTjtuGzDHvzR5IM","title":"Go 环境变量","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-2-zhang-an-zhuang-yu-yun-hang-huan-jing/02.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第2章：安装与运行环境"}]},{"id":"-LLCnyTkJXvkAMuyTKli","title":"在 Linux 上安装 Go","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-2-zhang-an-zhuang-yu-yun-hang-huan-jing/02.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第2章：安装与运行环境"}]},{"id":"-LLCnyTlmlHqytSZoK9Z","title":"在 Mac OS X 上安装 Go","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-2-zhang-an-zhuang-yu-yun-hang-huan-jing/02.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第2章：安装与运行环境"}]},{"id":"-LLCnyTmRbj-pPvkvKh2","title":"在 Windows 上安装 Go","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-2-zhang-an-zhuang-yu-yun-hang-huan-jing/02.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第2章：安装与运行环境"}]},{"id":"-LLCnyTnOfnRXA2xXCSS","title":"安装目录清单","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-2-zhang-an-zhuang-yu-yun-hang-huan-jing/02.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第2章：安装与运行环境"}]},{"id":"-LLCnyToR8Ec1nKVk_H4","title":"Go 运行时（runtime）","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-2-zhang-an-zhuang-yu-yun-hang-huan-jing/02.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第2章：安装与运行环境"}]},{"id":"-LLCnyTqjw8jDZprkwJj","title":"Go 解释器","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/di-2-zhang-an-zhuang-yu-yun-hang-huan-jing/02.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第2章：安装与运行环境"}]},{"id":"-LLCnyTtXJnboekY3Aom","title":"第3章：编辑器、集成开发环境与其它工具","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/03.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"}]},{"id":"-LLCnyTu7jGBD7MYGt3c","title":"Go 开发环境的基本要求","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/03.0/03.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第3章：编辑器、集成开发环境与其它工具"}]},{"id":"-LLCnyTvtRHDbL9c7koJ","title":"编辑器和集成开发环境","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/03.0/03.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第3章：编辑器、集成开发环境与其它工具"}]},{"id":"-LLCnyTwKf-EEGszgiO5","title":"调试器","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/03.0/03.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第3章：编辑器、集成开发环境与其它工具"}]},{"id":"-LLCnyTxPd3fIEtLDtP7","title":"构建并运行 Go 程序","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/03.0/03.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第3章：编辑器、集成开发环境与其它工具"}]},{"id":"-LLCnyTy740p3uNEqoHO","title":"格式化代码","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/03.0/03.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第3章：编辑器、集成开发环境与其它工具"}]},{"id":"-LLCnyTzfQP4jQOliMiZ","title":"生成代码文档","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/03.0/03.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第3章：编辑器、集成开发环境与其它工具"}]},{"id":"-LLCnyU-c5mY0NHYakAI","title":"其它工具","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/03.0/03.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第3章：编辑器、集成开发环境与其它工具"}]},{"id":"-LLCnyU03ClgoWvt7XqC","title":"Go 性能说明","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/03.0/03.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第3章：编辑器、集成开发环境与其它工具"}]},{"id":"-LLCnyU1UJLxyg_6T2_W","title":"与其它语言进行交互","pathname":"/the-way-to-go-zh-cn/di-yi-bu-fen-xue-xi-go-yu-yan/03.0/03.9","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第一部分：学习 Go 语言"},{"label":"第3章：编辑器、集成开发环境与其它工具"}]},{"id":"-LLCnyU4n0eXpXUbBZh9","title":"第4章：基本结构和基本数据类型","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/di-4-zhang-ji-ben-jie-gou-he-ji-ben-shu-ju-lei-xing","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"}]},{"id":"-LLCnyU5lb02sI9qkcAF","title":"文件名、关键字与标识符","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/di-4-zhang-ji-ben-jie-gou-he-ji-ben-shu-ju-lei-xing/04.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第4章：基本结构和基本数据类型"}]},{"id":"-LLCnyU6xtxf-Ybm3Hav","title":"Go 程序的基本结构和要素","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/di-4-zhang-ji-ben-jie-gou-he-ji-ben-shu-ju-lei-xing/04.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第4章：基本结构和基本数据类型"}]},{"id":"-LLCnyU7fxpZ0cYS37Zg","title":"常量","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/di-4-zhang-ji-ben-jie-gou-he-ji-ben-shu-ju-lei-xing/04.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第4章：基本结构和基本数据类型"}]},{"id":"-LLCnyU8H72duKg2I_Ci","title":"变量","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/di-4-zhang-ji-ben-jie-gou-he-ji-ben-shu-ju-lei-xing/04.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第4章：基本结构和基本数据类型"}]},{"id":"-LLCnyU9CEzt5WV9ecg_","title":"基本类型和运算符","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/di-4-zhang-ji-ben-jie-gou-he-ji-ben-shu-ju-lei-xing/04.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第4章：基本结构和基本数据类型"}]},{"id":"-LLCnyUAs8pVD-FVyZyZ","title":"字符串","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/di-4-zhang-ji-ben-jie-gou-he-ji-ben-shu-ju-lei-xing/04.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第4章：基本结构和基本数据类型"}]},{"id":"-LLCnyUBRfRARODPGcoY","title":"strings 和 strconv 包","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/di-4-zhang-ji-ben-jie-gou-he-ji-ben-shu-ju-lei-xing/04.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第4章：基本结构和基本数据类型"}]},{"id":"-LLCnyUCDHFR9aXzpaA0","title":"时间和日期","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/di-4-zhang-ji-ben-jie-gou-he-ji-ben-shu-ju-lei-xing/04.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第4章：基本结构和基本数据类型"}]},{"id":"-LLCnyUDzk26zC-sjl1g","title":"指针","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/di-4-zhang-ji-ben-jie-gou-he-ji-ben-shu-ju-lei-xing/04.9","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第4章：基本结构和基本数据类型"}]},{"id":"-LLCnyUEOXoF-J_MJoHo","title":"第5章：控制结构","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/05.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"}]},{"id":"-LLCnyUFQl7R-d8SUV0Y","title":"if-else 结构","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/05.0/05.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第5章：控制结构"}]},{"id":"-LLCnyUGHB6qeU-sMmSw","title":"测试多返回值函数的错误","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/05.0/05.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第5章：控制结构"}]},{"id":"-LLCnyUHaOxnpmS_LXkh","title":"switch 结构","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/05.0/05.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第5章：控制结构"}]},{"id":"-LLCnyUIojam_EXsxr57","title":"for 结构","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/05.0/05.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第5章：控制结构"}]},{"id":"-LLCnyUJlYp2EImNsg0d","title":"Break 与 continue","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/05.0/05.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第5章：控制结构"}]},{"id":"-LLCnyUKoRAIJYJ9kYdl","title":"标签与 goto","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/05.0/05.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第5章：控制结构"}]},{"id":"-LLCnyULR6GvItcuwO1d","title":"第6章：函数（function）","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"}]},{"id":"-LLCnyUMcslJjhjtrmwP","title":"介绍","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUNT6gJngp5Twq3","title":"函数参数与返回值","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUObO4p7nvZ5U7P","title":"传递变长参数","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUPcD4AnShjbkuN","title":"defer 和追踪","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUQDMkc9xg-cIe8","title":"内置函数","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyURKXDbx00v02Kl","title":"递归函数","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUSzgItR3ENXaVI","title":"将函数作为参数","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUTKMDymbs057Yd","title":"闭包","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUU1npsPKSD7zKe","title":"应用闭包：将函数作为返回值","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.9","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUVHkWtUIl6jdQu","title":"使用闭包调试","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.10","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUWBhbfpc6nraZN","title":"计算函数执行时间","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.11","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUXGqwYIBZGEgA6","title":"通过内存缓存来提升性能","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/06.0/06.12","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第6章：函数（function）"}]},{"id":"-LLCnyUY4BBQZRRPU-Tj","title":"第7章：数组与切片","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/07.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"}]},{"id":"-LLCnyUZID8DBEHYOBcY","title":"声明和初始化","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/07.0/07.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第7章：数组与切片"}]},{"id":"-LLCnyU_g1w546CvRUfK","title":"切片","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/07.0/07.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第7章：数组与切片"}]},{"id":"-LLCnyUaqK11zRwUZdDL","title":"For-range 结构","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/07.0/07.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第7章：数组与切片"}]},{"id":"-LLCnyUbB8C79Vh1-1Xp","title":"切片重组（reslice）","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/07.0/07.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第7章：数组与切片"}]},{"id":"-LLCnyUcaSe4IzE44iaJ","title":"切片的复制与追加","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/07.0/07.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第7章：数组与切片"}]},{"id":"-LLCnyUdrgeXcSOcNBGh","title":"字符串、数组和切片的应用","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/07.0/07.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第7章：数组与切片"}]},{"id":"-LLCnyUe2BqUPdCqaZeM","title":"第8章：Map","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/08.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"}]},{"id":"-LLCnyUfXtmlbQlaypEE","title":"声明、初始化和 make","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/08.0/08.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第8章：Map"}]},{"id":"-LLCnyUguJQYTgma5b3L","title":"测试键值对是否存在及删除元素","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/08.0/08.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第8章：Map"}]},{"id":"-LLCnyUhhO5_J03mIYxj","title":"for-range 的配套用法","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/08.0/08.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第8章：Map"}]},{"id":"-LLCnyUi0PURUKKdQtU3","title":"map 类型的切片","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/08.0/08.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第8章：Map"}]},{"id":"-LLCnyUjrMsm4c_IxB84","title":"map 的排序","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/08.0/08.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第8章：Map"}]},{"id":"-LLCnyUkCOJH1ggP-nbW","title":"将 map 的键值对调","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/08.0/08.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第8章：Map"}]},{"id":"-LLCnyUlH8W7WJJr9Ciw","title":"第9章：包（package）","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"}]},{"id":"-LLCnyUmDzZZpCouHTY7","title":"标准库概述","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUnT7hTnUlhk-tr","title":"regexp 包","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUo6GJZCLj7U4PH","title":"锁和 sync 包","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUp74nM7ORnxDPg","title":"精密计算和 big 包","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUqHpAyooOYDEAl","title":"自定义包和可见性","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUr2FOJzxox6ufB","title":"为自定义包使用 godoc","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUsMqtu5lhbqleI","title":"使用 go install 安装自定义包","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUtX3Lwf0eQTCJi","title":"自定义包的目录结构、go install 和 go test","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUu0KVKlnKqRLai","title":"通过 Git 打包和安装","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.9","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUv5kEZHmK84SOa","title":"Go 的外部包和项目","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.10","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUwEbpJKLFVre1r","title":"在 Go 程序中使用外部库","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/09.0/09.11","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第9章：包（package）"}]},{"id":"-LLCnyUxpO_5_NUbKOOF","title":"第10章：结构（struct）与方法（method）","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/10.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"}]},{"id":"-LLCnyUyosN7ptmD5-b0","title":"结构体定义","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/10.0/10.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第10章：结构（struct）与方法（method）"}]},{"id":"-LLCnyUzrCf5Bvu80Ziy","title":"使用工厂方法创建结构体实例","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/10.0/10.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第10章：结构（struct）与方法（method）"}]},{"id":"-LLCnyV-bAKwa1uvliRf","title":"使用自定义包中的结构体","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/10.0/10.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第10章：结构（struct）与方法（method）"}]},{"id":"-LLCnyV0qI8wpYENU_rQ","title":"带标签的结构体","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/10.0/10.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第10章：结构（struct）与方法（method）"}]},{"id":"-LLCnyV1DTzLN4t23-EN","title":"匿名字段和内嵌结构体","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/10.0/10.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第10章：结构（struct）与方法（method）"}]},{"id":"-LLCnyV2oDRZd0o5XGF_","title":"方法","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/10.0/10.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第10章：结构（struct）与方法（method）"}]},{"id":"-LLCnyV38uCqxygQXlBj","title":"类型的 String() 方法和格式化描述符","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/10.0/10.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第10章：结构（struct）与方法（method）"}]},{"id":"-LLCnyV4TQ6A3FQvP1b-","title":"垃圾回收和 SetFinalizer","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/10.0/10.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第10章：结构（struct）与方法（method）"}]},{"id":"-LLCnyV5jb2TJPeFS5Hg","title":"第11章：接口（interface）与反射（reflection）","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"}]},{"id":"-LLCnyV6LES6oVDYhNvM","title":"接口是什么","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyV7Lvwkd4EgZ61x","title":"接口嵌套接口","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyV8-bvEkqT4lSSH","title":"类型断言：如何检测和转换接口变量的类型","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyV9NVXPtfzh6UEt","title":"类型判断：type-switch","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVAhC296CLftS2N","title":"测试一个值是否实现了某个接口","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVBJOl4ODhilGEu","title":"使用方法集与接口","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVCn_MdG2zf2qTB","title":"第一个例子：使用 Sorter 接口排序","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVD46NCLOoxO75y","title":"第二个例子：读和写","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVE1kGfTsdWcTBT","title":"空接口","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.9","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVFAZa_ZxRurzzB","title":"反射包","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.10","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVG185XQ-ZY7tUg","title":"Printf 和反射","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.11","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVH-wPxjOV5gS6w","title":"接口与动态类型","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.12","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVIAv_Ev5Q7tsaZ","title":"总结：Go 中的面向对象","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.13","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVmI1VP0iC6kSII","title":"结构体、集合和高阶函数","pathname":"/the-way-to-go-zh-cn/di-er-bu-fen-yu-yan-de-he-xin-jie-gou-yu-ji-shu/11.0/11.14","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第二部分：语言的核心结构与技术"},{"label":"第11章：接口（interface）与反射（reflection）"}]},{"id":"-LLCnyVpqGjFNdmHnAzH","title":"第12章：读写数据","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"}]},{"id":"-LLCnyVqobvxKWNEni2u","title":"读取用户的输入","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyVr9ongD1Md_cWb","title":"文件读写","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyVsJCBLFeKlhZbS","title":"文件拷贝","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyVtloiwSuifwBKM","title":"从命令行读取参数","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyVuYMzaYYRzGksJ","title":"用 buffer 读取文件","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyVvR5aW9eqMNIrM","title":"用切片读写文件","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyVwHMA37u22uO-t","title":"用 defer 关闭文件","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyVxedlJh-tXlepY","title":"使用接口的实际例子：fmt.Fprintf","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyVy3lpNDejm-D-U","title":"格式化 JSON 数据","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.9","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyVzFULyX9K6dPvc","title":"XML 数据格式","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.10","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyW-Gb_p3Mslhlfj","title":"用 Gob 传输数据","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.11","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyW0NrLnQ4FSGcAG","title":"Go 中的密码学","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/12.0/12.12","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第12章：读写数据"}]},{"id":"-LLCnyW1DhxQ8KAyGSyp","title":"第13章：错误处理与测试","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"}]},{"id":"-LLCnyW2JJEvNVtegL66","title":"错误处理","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0/13.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第13章：错误处理与测试"}]},{"id":"-LLCnyW3cbRB9pZ04KZS","title":"运行时异常和 panic","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0/13.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第13章：错误处理与测试"}]},{"id":"-LLCnyW4IIk8bPD8Ku6o","title":"从 panic 中恢复（Recover）","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0/13.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第13章：错误处理与测试"}]},{"id":"-LLCnyW5GzoctGNyIn9A","title":"自定义包中的错误处理和 panicking","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0/13.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第13章：错误处理与测试"}]},{"id":"-LLCnyW6xR0RyWZRX9Im","title":"一种用闭包处理错误的模式","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0/13.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第13章：错误处理与测试"}]},{"id":"-LLCnyW7FF-6RYfLbc2J","title":"启动外部命令和程序","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0/13.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第13章：错误处理与测试"}]},{"id":"-LLCnyW8rOqgL3PBiyJD","title":"Go 中的单元测试和基准测试","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0/13.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第13章：错误处理与测试"}]},{"id":"-LLCnyW9HvhiC0iBQ7kq","title":"测试的具体例子","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0/13.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第13章：错误处理与测试"}]},{"id":"-LLCnyWAbZmLcmpfXhgN","title":"用（测试数据）表驱动测试","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0/13.9","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第13章：错误处理与测试"}]},{"id":"-LLCnyWBH8RPBQ3BQSP5","title":"性能调试：分析并优化 Go 程序","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/13.0/13.10","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第13章：错误处理与测试"}]},{"id":"-LLCnyWCRe451l_Yzf9s","title":"第14章：协程（goroutine）与通道（channel）","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/14.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"}]},{"id":"-LLCnyWDqo8JILw4mimB","title":"并发、并行和协程","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/14.0/14.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第14章：协程（goroutine）与通道（channel）"}]},{"id":"-LLCnyWEBgU-e1UwbbZg","title":"使用通道进行协程间通信","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/14.0/14.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第14章：协程（goroutine）与通道（channel）"}]},{"id":"-LLCnyWF4PemzMnycoYV","title":"协程同步：关闭通道-对阻塞的通道进行测试","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/14.0/14.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第14章：协程（goroutine）与通道（channel）"}]},{"id":"-LLCnyWGflrIighKM7ie","title":"使用 select 切换协程","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/14.0/14.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第14章：协程（goroutine）与通道（channel）"}]},{"id":"-LLCnyWHpkgfJQUJ2rW1","title":"通道，超时和计时器（Ticker）","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/14.0/14.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第14章：协程（goroutine）与通道（channel）"}]},{"id":"-LLCnyWIUdcNsa4WnVEw","title":"协程和恢复（recover）","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/14.0/14.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第14章：协程（goroutine）与通道（channel）"}]},{"id":"-LLCnyWJZTXEY_gLqxj9","title":"第15章：网络、模版与网页应用","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/15.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"}]},{"id":"-LLCnyWKNaakYrva4md8","title":"tcp服务器","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/15.0/15.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第15章：网络、模版与网页应用"}]},{"id":"-LLCnyWLj5HPVbPgPfQF","title":"一个简单的web服务器","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/15.0/15.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第15章：网络、模版与网页应用"}]},{"id":"-LLCnyWMtyLtbci8_UlQ","title":"访问并读取页面数据","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/15.0/15.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第15章：网络、模版与网页应用"}]},{"id":"-LLCnyWNI-fHQhJ9Bnv0","title":"写一个简单的网页应用","pathname":"/the-way-to-go-zh-cn/di-san-bu-fen-go-gao-ji-bian-cheng/15.0/15.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第三部分：Go 高级编程"},{"label":"第15章：网络、模版与网页应用"}]},{"id":"-LLCnyWQnMx41GPpzwtS","title":"第16章：常见的陷阱与错误","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"}]},{"id":"-LLCnyWRCcENuPuOJQA5","title":"误用短声明导致变量覆盖","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0/16.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第16章：常见的陷阱与错误"}]},{"id":"-LLCnyWSSBzyVXyy4v5b","title":"误用字符串","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0/16.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第16章：常见的陷阱与错误"}]},{"id":"-LLCnyWTUNxBPkLZvVUH","title":"发生错误时使用defer关闭一个文件","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0/16.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第16章：常见的陷阱与错误"}]},{"id":"-LLCnyWU2Of_TTXETzb9","title":"何时使用new()和make()","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0/16.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第16章：常见的陷阱与错误"}]},{"id":"-LLCnyWVyWFq7hgLeCc5","title":"不需要将一个指向切片的指针传递给函数","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0/16.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第16章：常见的陷阱与错误"}]},{"id":"-LLCnyWWHnAAZ1_rvw5P","title":"使用指针指向接口类型","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0/16.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第16章：常见的陷阱与错误"}]},{"id":"-LLCnyWXIh69SjigerOg","title":"使用值类型时误用指针","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0/16.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第16章：常见的陷阱与错误"}]},{"id":"-LLCnyWY_fF-NB0wolfW","title":"误用协程和通道","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0/16.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第16章：常见的陷阱与错误"}]},{"id":"-LLCnyWZIowLMGdR5BAt","title":"闭包和协程的使用","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0/16.9","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第16章：常见的陷阱与错误"}]},{"id":"-LLCnyW_1aqttYiH95Iy","title":"糟糕的错误处理","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/16.0/16.10","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第16章：常见的陷阱与错误"}]},{"id":"-LLCnyWaDHi9_pAqedfv","title":"第17章：模式","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/17.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"}]},{"id":"-LLCnyWbAfmk9lMElrHF","title":"关于逗号ok模式","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/17.0/17.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第17章：模式"}]},{"id":"-LLCnyWc0H7DCDPg3BAF","title":"第18章：出于性能考虑的实用代码片段","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"}]},{"id":"-LLCnyWdzLYRRhmdI7EA","title":"字符串","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.1","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWeozbmxVQ7dmlj","title":"数组和切片","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.2","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWfBoF805gS-3nk","title":"映射","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.3","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWgffznAJifjfm2","title":"结构体","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.4","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWhmmX_bkcdWTE2","title":"接口","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.5","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWiCRudtf_RUGJd","title":"函数","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.6","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWjpHRpFCOXLOAu","title":"文件","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.7","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWkE8OANKBvAHfB","title":"协程（goroutine）与通道（channel）","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.8","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWlmOsmiuOxZzqp","title":"网络和网页应用","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.9","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWmjtNzgQvMtc0T","title":"其他","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.10","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWnFQctG3dZiVqs","title":"出于性能考虑的最佳实践和建议","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/18.0/18.11","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"},{"label":"第18章：出于性能考虑的实用代码片段"}]},{"id":"-LLCnyWodtHxKWd9tSy4","title":"第19章：构建一个完整的应用程序","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/di-19-zhang-gou-jian-yi-ge-wan-zheng-de-ying-yong-cheng-xu","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"}]},{"id":"-LLCnyWpUmMyMaZxDjdK","title":"第20章：Go 语言在 Google App Engine 的使用","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/di-20-zhang-go-yu-yan-zai-google-app-engine-de-shi-yong","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"}]},{"id":"-LLCnyWqG7ON_7n-8zgc","title":"第21章：实际部署案例","pathname":"/the-way-to-go-zh-cn/di-si-bu-fen-shi-ji-ying-yong/di-21-zhang-shi-ji-bu-shu-an-li","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"第四部分：实际应用"}]},{"id":"-LLCnyWtGbf42qjcvL4p","title":"A 代码引用","pathname":"/the-way-to-go-zh-cn/fu-lu/a-dai-ma-yin-yong","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"附录"}]},{"id":"-LLCnyWuSdBE-pbS6hYQ","title":"B 有趣的 Go 引用","pathname":"/the-way-to-go-zh-cn/fu-lu/b-you-qu-de-go-yin-yong","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"附录"}]},{"id":"-LLCnyWvn2M2f_ImO0n_","title":"C 代码示例列表","pathname":"/the-way-to-go-zh-cn/fu-lu/c-dai-ma-shi-li-lie-biao","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"附录"}]},{"id":"-LLCnyWwXM70V_pHEdB8","title":"D 书中的包引用","pathname":"/the-way-to-go-zh-cn/fu-lu/d-shu-zhong-de-bao-yin-yong","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"附录"}]},{"id":"-LLCnyWxPhaZR4fCmgju","title":"E 书中的工具引用","pathname":"/the-way-to-go-zh-cn/fu-lu/e-shu-zhong-de-gong-ju-yin-yong","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"附录"}]},{"id":"-LLCnyWyoUq3W2qcfarK","title":"F 常见问题解答","pathname":"/the-way-to-go-zh-cn/fu-lu/f-chang-jian-wen-ti-jie-da","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"附录"}]},{"id":"-LLCnyWzOMfxMu1ktiNx","title":"G 习题答案","pathname":"/the-way-to-go-zh-cn/fu-lu/g-xi-ti-da-an","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"附录"}]},{"id":"-LLCnyX-IDHzm7GlkEil","title":"H 参考文献","pathname":"/the-way-to-go-zh-cn/fu-lu/h-can-kao-wen-xian","siteSpaceId":"sitesp_6rAZ0","description":"","breadcrumbs":[{"label":"附录"}]}]}