Commit Graph

1190 Commits

Author SHA1 Message Date
marjune
3dafa4ed22 add chapter 15.12 (#689) 2019-07-18 20:51:49 -07:00
marjune
00e4346204 add missing code example of chapter 15.3 (#678)
example code from:
https://sites.google.com/site/thewaytogo2012/Downhome/Topic3/code_examples.zip
2019-07-15 19:57:06 -07:00
Hingbong Lo
9865ae64a9 修正net.ListenTCP()的参数 (#680)
net.ListenTCP() 的参数为(string, *TCPAddr)
2019-07-15 19:56:42 -07:00
marjune
0584651404 add chapter 15.5 (#681) 2019-07-15 19:56:27 -07:00
marjune
c1eb170a8c add chapter 15.6 (#682) 2019-07-15 19:56:09 -07:00
marjune
c78236269d add chapter 15.7 (#683) 2019-07-15 19:55:54 -07:00
marjune
9580580bda Update 15.4.md (#677) 2019-07-11 23:24:14 -07:00
marjune
0e8df464ac Update 15.4.md (#676) 2019-07-11 23:24:02 -07:00
Respawnz
f8361643c8 14.11 Limiting the number of requests processed concurrently 限制同时处理的请求数 (#627)
* Create 14.11.md

* Update 14.11.md

* Update 14.11.md
2019-07-10 21:29:51 -07:00
obasang
e30be57a38 Update hello_who.go (#635)
练习 12.5:hello_who.go 写一个"Hello World"的变种程序:把人的名字作为程序命令行执行的一个参数,
比如:hello_who Evan Michael Laura 那么会输出Hello Evan Michael Laura!
按照原实现,与题目中的示例不符
2019-07-10 21:29:40 -07:00
Respawnz
fe5aa7f47f Update 15.0.md (#636) 2019-07-10 21:29:29 -07:00
Respawnz
97ff4e52a0 14.17 Concurrent acces to objects by using a channel. 使用通道并发访问对象 (#634)
* 14.17 使用通道并发访问对象

Concurrent acces to objects by using a channel.  使用通道并发访问对象

* Update 14.17.md

* Update 14.17.md
2019-07-10 21:29:02 -07:00
Respawnz
67d7568ca2 14.16 Benchmarking goroutines 对Go协程进行基准测试 (#633)
* Create 14.16.md

* Update 14.16.md

* Update 14.16.md

* Update 14.16.md

* Update 14.16.md

* Update 14.16.md

* Update 14.16.md
2019-07-10 21:28:51 -07:00
Respawnz
4459fd0f17 14.15 The leaky bucket algorithm 漏桶算法 (#632)
* Create 14.15.md

* Update 14.15.md

* Update 14.15.md

* Update 14.15.md

* Update 14.15.md

* Update 14.15.md

* Update 14.15.md

* Update 14.15.md
2019-07-10 21:28:38 -07:00
Respawnz
df12677f18 14.14 Parallelizing a computation over a large amount of data 并行化大量数据的计算 (#630)
* Create 14.14.md

* Update 14.14.md

* Update 14.14.md
2019-07-10 21:20:28 -07:00
Respawnz
6d4770ecd8 14.13 Parallelizing a computation over a number of cores 在多核心上并行计算 (#629)
* Create 14.13.md

* Update 14.13.md

* Update 14.13.md

* Update 14.13.md
2019-07-10 21:20:09 -07:00
理工男
7c1b5cf08d Update 04.2.md (#639) 2019-07-10 21:18:06 -07:00
kabakaba
97b6c6c491 fix net/url: invalid control character in URL 错误 (#640)
* fix net/url: invalid control character in URL 错误

* update ebook16.0 文字
2019-07-10 21:17:51 -07:00
marjune
43c19fd0c9 fix(05.1.md): add missing line separator (#641) 2019-07-10 21:17:32 -07:00
marjune
10e08b874c Update 07.1.md (#645) 2019-07-10 21:17:17 -07:00
LawsD
138307ff8c 修正格式化说明符翻译问题 (#646)
https://github.com/Unknwon/the-way-to-go_ZH_CN/issues/591
2019-07-10 21:16:56 -07:00
marjune
4db93bad25 Update 07.6.md (#647) 2019-07-10 21:16:43 -07:00
marjune
a2c15fbed1 Update 07.6.md (#649) 2019-07-10 21:16:29 -07:00
marjune
4d3dde588d Update 09.2.md (#650)
* Update 09.2.md

* Update 09.2.md
2019-07-10 21:13:36 -07:00
marjune
fe83f75551 Update 09.4.md (#651)
update according to English version.
2019-07-10 21:13:22 -07:00
marjune
3ee15820b4 Update 09.6.md (#652)
add link to `doc_examples`
2019-07-10 21:13:05 -07:00
marjune
c9cd16585e Update 10.6.md (#653)
Add original special word "method set"
2019-07-10 21:12:53 -07:00
marjune
9f4478c668 Update 11.9.md (#654) 2019-07-10 21:12:24 -07:00
iepngs
f2b2bdf5db Update 12.11.md (#655) 2019-07-10 21:12:04 -07:00
Johnsen
3d60a65988 09.5 修改pack1包中变量名PackFloat为pack1Float,保持本节教程代码和文本的一致性。 (#631)
* 修改pack1包中变量名PackFloat为pack1Float

* modify json.Decoder to json.NewDecoder
2019-07-10 21:11:51 -07:00
iepngs
0da9500027 pool.Mu.Lock()中lock方法首字母需要大写;切片名称错误;process的参数类型应该上下文统一; (#656) 2019-07-10 21:11:34 -07:00
marjune
65b2e5f971 Update 15.1 (#671) 2019-07-10 21:09:26 -07:00
marjune
243c87171f fix: apply official errata (#672)
see documentation:
https://sites.google.com/site/thewaytogo2012/the-gopher/Errata.pdf

see also:
https://sites.google.com/site/thewaytogo2012/the-gopher
2019-07-10 21:07:32 -07:00
marjune
d755ccc849 Update 15.2.md (#674)
* Update 15.2.md

* Update 15.2.md
2019-07-10 21:06:21 -07:00
marjune
4866b1922c Update 15.3.md (#675) 2019-07-10 21:05:02 -07:00
marjune
4b5092193f Update 12.2.md (#658) 2019-07-08 20:00:24 -07:00
iepngs
28a8afc954 修正错误使用了中文引号 (#659) 2019-07-08 19:59:55 -07:00
iepngs
cf2bbc8947 代码里中文符号更正 (#660) 2019-07-08 19:59:42 -07:00
marjune
8b3a8e03bb Update 12.4.md (#661) 2019-07-08 19:59:00 -07:00
marjune
6128a36b27 Update 12.9.md (#662) 2019-07-08 19:58:44 -07:00
marjune
e45628c48b Update 14.1.md (#665)
* Update 14.1.md

* Update 14.1.md
2019-07-08 19:58:28 -07:00
marjune
9cc2c642cf Update 14.2.md (#666) 2019-07-08 19:57:58 -07:00
marjune
89fd141c63 Update 14.5.md (#667)
* Update 14.5.md

* Update 14.5.md
2019-07-08 19:57:30 -07:00
marjune
115a66b766 Update 14.8.md (#668) 2019-07-08 19:55:23 -07:00
Loading Zhang
ba0218d96e 增加切片注释 (#621) 2019-04-30 19:42:34 -04:00
Kun Chen
b7cbab2090 Update 02.3.md (#618)
修正:
文件名和后文指令`go run hello_world1.go`保持一致。
2019-04-26 08:50:27 -04:00
Respawnz
4bed4b6cd7 示例序号错误 (#619) 2019-04-26 08:50:09 -04:00
Kun Chen
2806ae9c48 Update 03.4.md (#616)
更正:

`go build` 和 `go install` 命令的解释说反了。
2019-04-25 15:48:59 -04:00
Respawnz
8f0c9b1c8c effectively 有效的->实际上 (#615) 2019-04-25 15:48:36 -04:00
Respawnz
9363c0d07c 翻译建议 (#605)
* 翻译建议

英文原著:
> the  same  operator  <-  is  used  for  sending  and  receiving,  but  Go  figures  out  depending  on  the operands what to do. Although not necessary, for readability the channel name usually starts with ch  or  contains  ‘chan’. The  channel  send-  and  receive  operations  are  atomic:  they  always  complete without interruption.The use of the communication operator is illustrated in example

原译文:
>操作符 <- 也被用来发送和接收,Go 。尽管不必要,为了可读性,通道的命名通常以 ch 开头或者包含 chan。通道的发送和接收操作都是自动的:它们通常一气呵成。下面的示例展示了通信操作。

我的建议:
>同一个操作符 `<-` 既用于**发送**也用于**接收**,但Go会根据操作对象弄明白该干什么 。虽非强制要求,但为了可读性通道的命名通常以 `ch` 开头或者包含 `chan`。通道的发送和接收都是原子操作:它们总是互不干扰的完成的。下面的示例展示了通信操作的使用。

* 补个“符”字

* typical -> 典型

* 翻译建议

* Update 14.2.md

* Update 14.2.md

* Update 14.2.md
2019-04-25 15:48:15 -04:00