Commit Graph

123 Commits

Author SHA1 Message Date
Shin Kojima
6e15dcf66e Merge commit '45e093209ee7cbe1653785588f57804c33af3d0e' into ja 2014-09-21 20:57:40 +09:00
Shin Kojima
3fc7c43da4 Merge commit '2e13f0c83f27ce8e93529fd438cf89cf815cc95b' into ja 2014-09-21 20:56:53 +09:00
Shin Kojima
19500252ff Merge commit 'c123d910801783c409226d0091c9471bae89aa9f' into ja 2014-09-21 20:55:02 +09:00
Shin Kojima
9ef71d9475 Merge commit 'ed8cae764cb01ddcb955cd1cd788448ad6430fc9' into ja 2014-09-21 20:51:57 +09:00
Shin Kojima
4071d93c0d Merge commit 'd28ec7bcc78b2159263c975fb5c47595bc375b4f' into ja 2014-09-21 20:48:32 +09:00
Shin Kojima
7c1b750503 Merge commit 'b013829d02e91d2127525e66f22227ca61e873a0' into ja 2014-09-21 20:46:08 +09:00
Shin Kojima
9942625128 Merge commit 'b7fb567d1b1f979845d6864b25c5ca116d7ee071' into ja 2014-09-21 19:03:37 +09:00
Shin Kojima
167cdc6608 Merge commit '12c6bfaeb89bebafaa0433dfafb8b4149bc58145' into ja 2014-09-21 18:54:16 +09:00
Shin Kojima
39b6a158a4 Merge commit 'aa6bff93c67fb99101090b5013119ac24a250b3c' into ja 2014-09-21 18:40:56 +09:00
Jiaying Ren
5ff5905f7c HTTP作为协议名时统一使用大写(03.0节)
从下一章看到基本上提到http 这四字母,如果要表示HTTP 协议,都使用了大写。而在表示 net/http 包时都用了小写。故这里表示协议,应该全部大写。
2014-01-25 11:14:21 +08:00
Jiaying Ren
f9ecac1f13 更正笔误 2014-01-23 21:39:23 +08:00
Jiaying Ren
52844de955 修改对close 的描述 2014-01-23 21:23:13 +08:00
Jiaying Ren
7bd28a6fd7 调整示例程序格式
将程序和输出放在某个代码片段中,应该有格式的统一。

另一个方式是将程序输出放在一个单独的代码片段中,类似 https://gobyexample.com/hello-world
2014-01-23 21:10:57 +08:00
Jiaying Ren
10dd9b20c3 改进对反射的描述
原句中`所谓反射就是动态运行时的状态。`,去掉形容词就是说`反射就是状态`?

按照The Laws of Reflection中的解释: `Reflection in computing is the ability of a program to examine its own structure, particularly through types;`

可以看出反射是程序的一种能力。FYI.
2014-01-23 21:02:54 +08:00
Shin Kojima
2434c085f6 Merge commit 'e1ce235b48775c6ef509e44370765c10ce1556b4' into ja 2014-01-19 21:24:40 +09:00
Jiaying Ren
156ee7ac52 环境变量名应为大写
看了下书里提到 goroot 只有一处

> ➜  ebook git:(master) grep goroot *.md
02.3.md:上面这个fmt是Go语言的标准库,其实是去goroot下去加载该模块,当然Go的import还支持如下两种方式来加载自己写的模块:

而fmt 包的位置则是在 `GOROOT` 环境变量指定目录下的 `src/pkg/fmt`中。
2014-01-19 16:48:30 +08:00
Jiaying Ren
4094e84af9 改写"包含分" 语病
另外这句话中先说了流程控制的好处,再说流程控制的分类时,感觉是在说所有语言的流程控制。所以还是明确限定成Golang比较好。

因为毕竟并不是所有的语言都有goto。
2014-01-18 19:20:17 +08:00
Jiaying Ren
38017b602f 添加段落结束落下的句号 2014-01-18 19:13:07 +08:00
astaxie
50e677514c Merge pull request #295 from mikulely/patch-1
添加段落结束落下的句号
2014-01-17 17:46:30 -08:00
Jiaying Ren
621ca2a7d2 操作系统名采用统一的首字母大写。
>  `go build`的时候会选择性地编译以系统名结尾的文件(linux、darwin、windows、freebsd)。例如Linux系统下面编译只会选择array_linux.go文件,其它系统命名后缀文件全部忽略。

这句话里两次说到Linux,一次大写,一次小写。
2014-01-17 18:24:44 +08:00
Jiaying Ren
e5f36b29f3 添加段落结束落下的句号 2014-01-17 18:20:22 +08:00
Siong-Ui Te
9e9e1608af 裡===》里 2014-01-08 10:28:35 +08:00
Siong-Ui Te
576d3041f6 轉簡體字 2014-01-08 10:16:09 +08:00
Siong-Ui Te
3134a0158a 新增database/sql教學網站 2014-01-08 03:40:29 +08:00
MatrixYuri
54e39ba3ba Add some output
添加了示例代码的一些实际输出信息,以及报错的内容
2014-01-02 00:35:43 +08:00
Shin Kojima
5d9b06f3d9 Add config as language file
This patch will change several behaviour while generating the ebook:

- `build.go` now accepts two environment variables: TMP, WORKDIR

    * TMP:

Temporary directory path.
The directory stores intermediate files like '*.html' or metadata.txt.

    * WORKDIR:

Script base directory.

- `config` as language file

config file will be `source`d to change its ebook metadata.

- `genepub.sh` is integrated to `build.sh` and `build.go`

See `FixHeader` and `RemoveFooterLink` functions.
2013-12-31 13:10:27 +09:00
Larry Battle
837782153e Shorter example and formatting.
- Refactored the last example because it was too long.
- Output should be a comment.
2013-12-02 16:41:14 -06:00
Larry Battle
6be27d951e Corrected format for Description
Corrected format for `Description`
2013-11-26 01:18:02 -06:00
astaxie
4a03e79485 Merge pull request #273 from 6yf/patch-5
微小改动
2013-11-23 19:17:45 -08:00
astaxie
8cd64b7ed0 Merge pull request #272 from 6yf/patch-4
“显示的”=>“显式的”; rob => Rob
2013-11-23 19:17:22 -08:00
astaxie
af3d980f90 Merge pull request #271 from 6yf/patch-3
A few typos & minor improvement: Sayhi => SayHi, etc.
2013-11-23 19:16:31 -08:00
astaxie
815befafa8 Merge pull request #270 from 6yf/patch-2
合并两次b.Volume()为一次调用
2013-11-23 19:15:54 -08:00
6yf
ce37382a9d 微小改动 2013-11-22 17:09:24 +08:00
6yf
0a828ae3ce “显示的”=>“显式的”; rob => Rob 2013-11-22 16:34:16 +08:00
6yf
cddb6efd03 A few typos & minor improvement: Sayhi => SayHi, etc.
小细节改进。谢谢老谢分享的大作,很适合学习Go。
2013-11-22 16:12:41 +08:00
6yf
3d562b202f 合并两次b.Volume()为一次调用
合并两次b.Volume()为一次调用,培养注重效率的习惯,充分利用Go的if可设初始值的特性。
2013-11-22 14:59:57 +08:00
6yf
1f63d7ed1d Update 02.5.md
结尾处“共有”改为“公有”。
2013-11-22 14:35:02 +08:00
ahjdzx1990
45c26b76b5 Update 01.5.md
“然后结束了”改为“然后介绍了”
2013-11-16 17:51:55 +08:00
jasonz
c32493a2cf fix typo 2013-11-14 00:09:12 +08:00
vincent
00e69c6db7 Update 01.4.md
补充sublime+gosublime插件无提示可能出现的情况及其解决方案
2013-10-26 15:37:39 +08:00
Daniel YC Lin
1bdeafd29c describe thread safety of 'map' 2013-09-27 14:44:30 +08:00
astaxie
99af7ff378 Update 02.2.md 2013-09-27 14:15:16 +08:00
Daniel YC Lin
193a3666c7 describe more about const 2013-09-27 13:48:50 +08:00
Daniel YC Lin
a5aacc9e73 added vim tips link 2013-09-27 08:47:07 +08:00
Daniel YC Lin
48687107f9 update for go 1.2rc1 2013-09-26 17:21:05 +08:00
项超
71a28368e1 Update 07.2.md 2013-08-27 19:54:18 +08:00
JasonZhang
2e4ef30f03 Update 13.5.md
“上一章”显示的文字错误,应为“日志和配置设计”
2013-08-26 18:02:41 +08:00
astaxie
c67a4de077 Update 05.5.md 2013-08-15 21:24:55 +08:00
era
29d8396c25 让sublime支持项目本身pkg 2013-08-12 12:45:09 +08:00
WingStone
3fa764434e Update 09.6.md 2013-08-07 10:50:09 +08:00