Commit Graph

862 Commits

Author SHA1 Message Date
wahaha
33bf82d477
Update ch7-03.md 2018-05-27 01:12:05 +08:00
wahaha
3d3ebe7235
Update ch5-03.md 2018-05-22 16:05:42 +08:00
Xargin
fc1ccb23bf
Merge pull request #57 from sleagon/master
Add preview host(most of  hosts are broken)
2018-05-18 18:27:30 +08:00
shanyy
38543934d8 Remove broken preview hosts 2018-05-18 17:25:57 +08:00
shanyy
fb2f1a1d9b Add preview host(most of hosts are broken) 2018-05-18 17:15:31 +08:00
Xargin
686f88c60e fix typo
diff --git a/ch1/ch1-03.md b/ch1/ch1-03.md
index 2861424..866573f 100644
--- a/ch1/ch1-03.md
+++ b/ch1/ch1-03.md
@@ -37,7 +37,7 @@ func main() {

 (译注:从功能和实现上说,`Go`的`map`类似于`Java`语言中的`HashMap`,Python语言中的`dict`,`Lua`语言中的`table`,通常使用`hash`实现。遗憾的是,对于该词的翻译并不统一,数学界术语为`映射`,而计算机界众说纷纭莫衷一是。为了防止对读者造成误解,保留不译。)

-每次`dup`读取一行输入,该行被当做`map`,其对应的值递增。`counts[input.Text()]++`语句等价下面两句:
+每次`dup`读取一行输入,该行被当做键存入`map`,其对应的值递增。`counts[input.Text()]++`语句等价下面两句:

 ```go
 line := input.Text()
2018-05-16 18:40:58 +08:00
Xargin
f5a329e8cf
Merge pull request #56 from CloudnuY/master
fix typo
2018-03-31 12:09:56 +08:00
Cloud
1788b095fd fix typo 2018-03-31 00:47:24 +08:00
Xargin
5ae8b7cdb3 fix typo 2018-03-21 17:37:17 +08:00
Xargin
8a8931b45b
Merge pull request #55 from kangxiaoning/master
Fix a typo
2018-03-09 20:19:54 +08:00
kangxiaoning
f619a6ebd4 Fix a typo 2018-03-09 17:38:51 +08:00
Xargin
22f02bc3f1
Merge pull request #54 from kangxiaoning/master
修正zero value和signature翻译
2018-03-09 17:32:32 +08:00
kangxiaoning
76161c4b22 Fix a typo 2018-03-09 17:20:43 +08:00
kangxiaoning
a3473cf0f6 Fix a typo 2018-03-09 17:15:27 +08:00
Xargin
2e0bb31022
Merge pull request #53 from kangxiaoning/master
Fix a typo
2018-03-08 22:16:41 +08:00
seankang
05eaf14e5f Fix a typo 2018-03-08 20:05:41 +08:00
Xargin
d2ca195e6f
Merge pull request #52 from sherylynn/master
更新gitbook版本,避免由node新版本而产生安装问题,并增加了windows下构建gitbook的批处理
2018-03-01 17:26:10 +08:00
sherylynn
a2ea244e71 增加了windows下构建的批处理 2018-03-01 14:13:31 +08:00
林增
be4933599e
更新gitbook版本,避免安装问题 2018-03-01 13:18:39 +08:00
Xargin
9eecd0f991 fix typo
diff --git a/ch2/ch2-07.md b/ch2/ch2-07.md
index f5e75f4..b74cfdd 100644
--- a/ch2/ch2-07.md
+++ b/ch2/ch2-07.md
@@ -12,7 +12,7 @@

 一个程序可能包含多个同名的声明,只要它们在不同的词法域就没有关系。例如,你可以声明一个局部变量,和包级的变量同名。或者是像2.3.3节的例子那样,你可以将一个函数参数的名字声明为new,虽然内置的new是全局作用域的。但是物极必反,如果滥用不同词法域可重名的特性的话,可能导致程序很难阅读。

-当编译器遇到一个名字引用时,如果它看起来像一个声明,它首先从最内层的词法域向全局的作用域查找。如果查找失败,则报告“未声明的名字”这样的错误。如果该名字在内部和外部的块分别声明过,则内部块的声明首先被找到。在这种情况下,内部声明屏蔽了外部同名的声明,让外部的声明的名字无法被访问:
+当编译器遇到一个名字引用时,它会对其定义进行查找,查找过程从最内层的词法域向全局的作用域进行。如果查找失败,则报告“未声明的名字”这样的错误。如果该名字在内部和外部的块分别声明过,则内部块的声明首先被找到。在这种情况下,内部声明屏蔽了外部同名的声明,让外部的声明的名字无法被访问:

 ```Go
 func f() {}
2018-02-23 15:49:02 +08:00
Xargin
bc9c93eec7
Merge pull request #51 from iamybj/master
readme.md 和 preferd.md 预览网址保持一致
2018-02-23 14:00:04 +08:00
iamybj
3587f6a931
Update preface.md 2018-02-22 12:57:20 +08:00
iamybj
9689a66054
Update README.md 2018-02-22 12:56:00 +08:00
iamybj
701c69dabc
Update preface.md 2018-02-22 12:55:15 +08:00
Xargin
9ac3956583 Merge branch 'master' of https://github.com/gopl-zh/gopl-zh.github.com 2018-01-17 17:45:45 +08:00
Xargin
72b9bfe173 fix 2018-01-17 17:45:27 +08:00
Xargin
a5efe7a0dd
Merge pull request #50 from wukoo/patch-3
Update ch5-04-1.md
2018-01-01 20:14:46 +08:00
wukoo
3f8f4a0531
Update ch5-04-1.md
翻译错误。
2018-01-01 16:43:56 +08:00
Xargin
d493b63b5e
Merge pull request #45 from qinhanlei/patch-14
Update ch12-07.md
2017-12-15 15:31:18 +08:00
Xargin
3484a16c92
Merge pull request #46 from qinhanlei/patch-15
Update ch12-07.md
2017-12-15 15:30:57 +08:00
Xargin
4d1683a00b
Merge pull request #47 from qinhanlei/patch-16
Update SUMMARY.md
2017-12-15 15:30:42 +08:00
Xargin
06093965fd
Merge pull request #48 from qinhanlei/patch-17
Update ch12-09.md
2017-12-15 15:30:22 +08:00
Hanlei Qin
81a0ef3317
Update ch12-09.md 2017-12-15 14:46:04 +08:00
Hanlei Qin
fc760171e1
Update SUMMARY.md 2017-12-15 14:24:25 +08:00
Hanlei Qin
b2792e2ea8
Update ch12-07.md 2017-12-15 14:22:51 +08:00
Hanlei Qin
e0bb46ea95
Update ch12-07.md 2017-12-15 14:19:27 +08:00
Xargin
214cac4095 uupdate 2017-12-11 19:14:11 +08:00
Xargin
a2a5cd9d9d Merge branch 'master' of https://github.com/gopl-zh/gopl-zh.github.com 2017-12-11 19:12:51 +08:00
Xargin
29140c015f fix order 2017-12-11 19:12:31 +08:00
Xargin
2f6a87500f
Merge pull request #43 from qinhanlei/patch-13
Update ch10-06.md
2017-12-06 23:05:20 +08:00
Hanlei Qin
84d5d2bf5e
Update ch10-06.md 2017-12-06 22:37:52 +08:00
Xargin
9e043e30cc
Merge pull request #41 from qinhanlei/patch-11
Update SUMMARY.md
2017-12-06 18:41:40 +08:00
Xargin
c151f224a6
Merge pull request #42 from qinhanlei/patch-12
Update ch9-05.md
2017-12-06 18:41:19 +08:00
Hanlei Qin
7c0b29af8e
Update ch9-05.md 2017-12-06 18:29:24 +08:00
Hanlei Qin
e287bc9f23
Update SUMMARY.md 2017-12-06 18:27:50 +08:00
Xargin
3e97cdf96b
Merge pull request #40 from qinhanlei/patch-10
Update ch9-02.md
2017-12-06 15:43:38 +08:00
Hanlei Qin
c1b75dda19
Update ch9-02.md 2017-12-06 14:14:13 +08:00
Xargin
e0dfb180d4
Merge pull request #36 from qinhanlei/patch-6
Update ch8-10.md
2017-12-06 10:46:08 +08:00
Xargin
24e0e40d6b
Merge pull request #37 from qinhanlei/patch-7
Update ch9-01.md
2017-12-06 10:45:32 +08:00
Xargin
97c96badd5
Merge pull request #38 from qinhanlei/patch-8
Update ch9-01.md
2017-12-06 10:45:11 +08:00