diff --git a/README.md b/README.md index 18031f01cc1ac4993de6edd03a06b6fbdc020c7c..725dadebe3ff8bbb868875f290ef70af0ea3c4da 100644 --- a/README.md +++ b/README.md @@ -11,62 +11,61 @@ ## 文章目录 -在线阅读:[Golang 编程时光](http://golang.iswbm.com/) - +在线阅读:[Golang 编程时光](https://golang.iswbm.com/) - **第一章:基础知识** - * [1.1 一文搞定开发环境的搭建](http://golang.iswbm.com/en/latest/c01/c01_01.html) - * [1.2 五种变量创建的方法](http://golang.iswbm.com/en/latest/c01/c01_02.html) - * [1.3 数据类型:整型与浮点型](http://golang.iswbm.com/en/latest/c01/c01_03.html) - * [1.4 数据类型:byte、rune与字符串](http://golang.iswbm.com/en/latest/c01/c01_04.html) - * [1.5 数据类型:数组与切片](http://golang.iswbm.com/en/latest/c01/c01_05.html) - * [1.6 数据类型:字典与布尔类型](http://golang.iswbm.com/en/latest/c01/c01_06.html) - * [1.7 数据类型:指针](http://golang.iswbm.com/en/latest/c01/c01_07.html) - * [1.8 流程控制:if-else](http://golang.iswbm.com/en/latest/c01/c01_08.html) - * [1.9 流程控制:switch-case](http://golang.iswbm.com/en/latest/c01/c01_09.html) - * [1.10 流程控制:for 循环](http://golang.iswbm.com/en/latest/c01/c01_10.html) - * [1.11 流程控制:goto 无条件跳转](http://golang.iswbm.com/en/latest/c01/c01_11.html) - * [1.12 流程控制:defer 延迟语句](http://golang.iswbm.com/en/latest/c01/c01_12.html) - * [1.13 流程控制:理解 select 用法](http://golang.iswbm.com/en/latest/c01/c01_13.html) - * [1.14 异常机制:panic 和 recover](http://golang.iswbm.com/en/latest/c01/c01_14.html) - * [1.15 语法规则:理解语句块与作用域](http://golang.iswbm.com/en/latest/c01/c01_15.html) + * [1.1 一文搞定开发环境的搭建](https://golang.iswbm.com/c01/c01_01.html) + * [1.2 五种变量创建的方法](https://golang.iswbm.com/c01/c01_02.html) + * [1.3 数据类型:整型与浮点型](https://golang.iswbm.com/c01/c01_03.html) + * [1.4 数据类型:byte、rune与字符串](https://golang.iswbm.com/c01/c01_04.html) + * [1.5 数据类型:数组与切片](https://golang.iswbm.com/c01/c01_05.html) + * [1.6 数据类型:字典与布尔类型](https://golang.iswbm.com/c01/c01_06.html) + * [1.7 数据类型:指针](https://golang.iswbm.com/c01/c01_07.html) + * [1.8 流程控制:if-else](https://golang.iswbm.com/c01/c01_08.html) + * [1.9 流程控制:switch-case](https://golang.iswbm.com/c01/c01_09.html) + * [1.10 流程控制:for 循环](https://golang.iswbm.com/c01/c01_10.html) + * [1.11 流程控制:goto 无条件跳转](https://golang.iswbm.com/c01/c01_11.html) + * [1.12 流程控制:defer 延迟语句](https://golang.iswbm.com/c01/c01_12.html) + * [1.13 流程控制:理解 select 用法](https://golang.iswbm.com/c01/c01_13.html) + * [1.14 异常机制:panic 和 recover](https://golang.iswbm.com/c01/c01_14.html) + * [1.15 语法规则:理解语句块与作用域](https://golang.iswbm.com/c01/c01_15.html) - **第二章:面向对象** - * [2.1 面向对象:结构体与继承](http://golang.iswbm.com/en/latest/c02/c02_01.html) - * [2.2 面向对象:接口与多态](http://golang.iswbm.com/en/latest/c02/c02_02.html) - * [2.3 面向对象:结构体里的 Tag 用法](http://golang.iswbm.com/en/latest/c02/c02_03.html) - * [2.4 学习接口:详解类型断言](http://golang.iswbm.com/en/latest/c02/c02_04.html) - * [2.5 学习接口:Go 语言中的空接口](http://golang.iswbm.com/en/latest/c02/c02_05.html) - * [2.6 学习接口:接口的三个"潜规则"](http://golang.iswbm.com/en/latest/c02/c02_06.html) - * [2.7 学习反射:反射三定律](http://golang.iswbm.com/en/latest/c02/c02_07.html) - * [2.8 学习反射:全面学习反射的函数](http://golang.iswbm.com/en/latest/c02/c02_08.html) - * [2.9 详细图解:静态类型与动态类型](http://golang.iswbm.com/en/latest/c02/c02_09.html) - * [2.10 关键字:make 和 new 的区别?](http://golang.iswbm.com/en/latest/c02/c02_10.html) + * [2.1 面向对象:结构体与继承](https://golang.iswbm.com/c02/c02_01.html) + * [2.2 面向对象:接口与多态](https://golang.iswbm.com/c02/c02_02.html) + * [2.3 面向对象:结构体里的 Tag 用法](https://golang.iswbm.com/c02/c02_03.html) + * [2.4 学习接口:详解类型断言](https://golang.iswbm.com/c02/c02_04.html) + * [2.5 学习接口:Go 语言中的空接口](https://golang.iswbm.com/c02/c02_05.html) + * [2.6 学习接口:接口的三个"潜规则"](https://golang.iswbm.com/c02/c02_06.html) + * [2.7 学习反射:反射三定律](https://golang.iswbm.com/c02/c02_07.html) + * [2.8 学习反射:全面学习反射的函数](https://golang.iswbm.com/c02/c02_08.html) + * [2.9 详细图解:静态类型与动态类型](https://golang.iswbm.com/c02/c02_09.html) + * [2.10 关键字:make 和 new 的区别?](https://golang.iswbm.com/c02/c02_10.html) - **第三章:项目管理** - * [3.1 依赖管理:包导入很重要的 8 个知识点](http://golang.iswbm.com/en/latest/c03/c03_01.html) - * [3.2 依赖管理:超详细解读 Go Modules 应用](http://golang.iswbm.com/en/latest/c03/c03_02.html) - * [3.3 开源发布:如何开源自己写的包给别人用?](http://golang.iswbm.com/en/latest/c03/c03_03.html) - * [3.4 代码规范:Go语言中编码规范](http://golang.iswbm.com/en/latest/c03/c03_04.html) + * [3.1 依赖管理:包导入很重要的 8 个知识点](https://golang.iswbm.com/c03/c03_01.html) + * [3.2 依赖管理:超详细解读 Go Modules 应用](https://golang.iswbm.com/c03/c03_02.html) + * [3.3 开源发布:如何开源自己写的包给别人用?](https://golang.iswbm.com/c03/c03_03.html) + * [3.4 代码规范:Go语言中编码规范](https://golang.iswbm.com/c03/c03_04.html) - **第四章:并发编程** - * [4.1 学习 Go 函数:理解 Go 里的函数](http://golang.iswbm.com/en/latest/c04/c04_01.html) - * [4.2 学习 Go 协程:goroutine](http://golang.iswbm.com/en/latest/c04/c04_02.html) - * [4.3 学习 Go 协程:详解信道/通道](http://golang.iswbm.com/en/latest/c04/c04_03.html) - * [4.4 学习 Go 协程:WaitGroup](http://golang.iswbm.com/en/latest/c04/c04_04.html) - * [4.5 学习 Go 协程:互斥锁和读写锁](http://golang.iswbm.com/en/latest/c04/c04_05.html) - * [4.7 学习 Go 协程: 信道死锁经典错误案例](http://golang.iswbm.com/en/latest/c04/c04_06.html) - * [4.7 学习 Go 协程:如何实现一个协程池?](http://golang.iswbm.com/en/latest/c04/c04_07.html) - * [4.8 理解 Go 语言中的 Context](http://golang.iswbm.com/en/latest/c04/c04_08.html) - * [4.9 学习一些常见的并发模型](http://golang.iswbm.com/en/latest/c04/c04_09.html) + * [4.1 学习 Go 函数:理解 Go 里的函数](https://golang.iswbm.com/c04/c04_01.html) + * [4.2 学习 Go 协程:goroutine](https://golang.iswbm.com/c04/c04_02.html) + * [4.3 学习 Go 协程:详解信道/通道](https://golang.iswbm.com/c04/c04_03.html) + * [4.4 学习 Go 协程:WaitGroup](https://golang.iswbm.com/c04/c04_04.html) + * [4.5 学习 Go 协程:互斥锁和读写锁](https://golang.iswbm.com/c04/c04_05.html) + * [4.7 学习 Go 协程: 信道死锁经典错误案例](https://golang.iswbm.com/c04/c04_06.html) + * [4.7 学习 Go 协程:如何实现一个协程池?](https://golang.iswbm.com/c04/c04_07.html) + * [4.8 理解 Go 语言中的 Context](https://golang.iswbm.com/c04/c04_08.html) + * [4.9 学习一些常见的并发模型](https://golang.iswbm.com/c04/c04_09.html) - **第五章:学标准库** - * [5.1 fmt.Printf 方法详解](http://golang.iswbm.com/en/latest/c05/c05_01.html) - * [5.2 os/exec 执行命令的五种姿势](http://golang.iswbm.com/en/latest/c05/c05_02.html) + * [5.1 fmt.Printf 方法速查指南](https://golang.iswbm.com/c05/c05_01.html) + * [5.2 os/exec 执行命令的五种姿势](https://golang.iswbm.com/c05/c05_02.html) + * [5.3 命令行参数的解析:flag 库详解](https://golang.iswbm.com/c05/c05_03.html) - **第六章:开发技能** - * [6.1 Go 命令:go test 工具详解](http://golang.iswbm.com/en/latest/c06/c06_01.html) - * [6.2 单元测试:如何进行单元测试?](http://golang.iswbm.com/en/latest/c06/c06_02.html) - * [6.3 调试技巧:使用 GDB 调试 Go 程序](http://golang.iswbm.com/en/latest/c06/c06_03.html) - * [6.4 Go 命令: Go 命令指南](http://golang.iswbm.com/en/latest/c06/c06_04.html) + * [6.1 Go 命令:go test 工具详解](https://golang.iswbm.com/c06/c06_01.html) + * [6.2 单元测试:如何进行单元测试?](https://golang.iswbm.com/c06/c06_02.html) + * [6.3 调试技巧:使用 GDB 调试 Go 程序](https://golang.iswbm.com/c06/c06_03.html) + * [6.4 Go 命令: Go 命令指南](https://golang.iswbm.com/c06/c06_04.html) - **第七章:暂未分类** - * [7.1 20 个学习 Go 语言的精品网站](http://golang.iswbm.com/en/latest/c07/c07_01.html) - - + * [7.1 20 个学习 Go 语言的精品网站](https://golang.iswbm.com/c07/c07_01.html) + * [7.2 Go 语言中边界检查](https://golang.iswbm.com/c07/c07_02.html) ## 欢迎交流 diff --git a/github-toc-maker-for-sphinx.py b/github-toc-maker-for-sphinx.py index b1dc13a70209e8647802e6a75703f1cb25b75aae..62b8f55495265ce0b12721fe621d91900df936ab 100644 --- a/github-toc-maker-for-sphinx.py +++ b/github-toc-maker-for-sphinx.py @@ -41,7 +41,7 @@ def get_toc_info(): section = int(re.findall(r"c\d{2}_(\d{2}).md", file_name)[0]) #md_path = os.path.join("./source/", dir_name, file_name) - md_path = os.path.join("http://golang.iswbm.com/en/latest/", dir_name, file_name.replace("md", "html")) + md_path = os.path.join("https://golang.iswbm.com/", dir_name, file_name.replace("md", "html")) title = get_title(file) if not title: continue