Skip to content

Commit 4b8264b

Browse files
committed
Add:新增章节
1 parent 6b18bb5 commit 4b8264b

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ build/
44
Makefile
55
Pipfile
66
test*
7+
Untitled*

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@
5050
- 5.2 [学 gin 需要了解哪些库](http://golang.iswbm.com/en/latest/c05/c05_02.html)
5151
- 2. [项目结构及依赖管理](http://golang.iswbm.com/en/latest/c05/c05_03.html)
5252

53-
## 第六章:暂未分类
54-
- 6.1 [整理了 20 个学习 Go 语言的精品网站](http://golang.iswbm.com/en/latest/c06/c06_01.html)
55-
- 6.2 [配置高颜值 IDE:Goland](http://golang.iswbm.com/en/latest/c06/c06_02.html)
53+
## 第六章:测试专题
54+
- 6.1 [go test 工具命令详解](http://golang.iswbm.com/en/latest/c06/c06_01.html)
55+
- 6.2 [如何进行单元测试?](http://golang.iswbm.com/en/latest/c06/c06_02.html)
56+
57+
## 第七章:暂未分类
58+
- 6.1 [整理了 20 个学习 Go 语言的精品网站](http://golang.iswbm.com/en/latest/c07/c07_01.html)
59+
- 6.2 [配置高颜值 IDE:Goland](http://golang.iswbm.com/en/latest/c07/c07_02.html)
5660

5761

5862
---

source/c01/c01_10.rst

+21
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,27 @@ range 后可接数组、切片,字符串等
169169
hello, python
170170
hello, go
171171

172+
如果你用一个变量来接收的话,接收到的是索引
173+
174+
.. code:: go
175+
176+
import "fmt"
177+
178+
func main() {
179+
myarr := [...]string{"world", "python", "go"}
180+
for i := range myarr {
181+
fmt.Printf("hello, %v\n", i)
182+
}
183+
}
184+
185+
输出如下
186+
187+
::
188+
189+
hello, 0
190+
hello, 1
191+
hello, 2
192+
172193
--------------
173194

174195
|image0|

source/roadmap.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Roadmap
1212

1313
--------------------------------------------
1414

15-
.. image:: http://image.python-online.cn/image-20200320125724880.png
15+
.. image:: http://image.python-online.cn/image-20200320125724880.png

0 commit comments

Comments
 (0)