一本学习 Go 语言的免费电子书。
TeX Go Perl Other
Latest commit a6a1168 May 25, 2016 @mikespook Merge pull request #21 from dashaomai/patch-1
typo issue
Permalink
Failed to load latest commit information.
bin Init the repo.\nAdded the Chinese fonts. Apr 7, 2011
creative_commons Init the repo.\nAdded the Chinese fonts. Apr 7, 2011
ex-basics Update fizzbuzz.go Nov 19, 2014
ex-beyond merge Dec 30, 2013
ex-channels Remove orig files Mar 7, 2013
ex-communication merge from English version Jun 23, 2014
ex-functions fixed issue #15 Nov 20, 2014
ex-interfaces merge from English version Jun 23, 2014
ex-intro Cleanups Nov 6, 2013
ex-packages merge Jul 22, 2013
ex-unsorted Init the repo.\nAdded the Chinese fonts. Apr 7, 2011
fig merge Dec 30, 2013
fonts More sourcecode pro bold font Jan 31, 2013
src Fix a small problem in code example Aug 9, 2014
tab its a builtin function. duh! Jun 12, 2013
tools promote the vim script Sep 22, 2011
.gitignore Add intermediate files generated by make to ignore list Sep 6, 2012
.hgignore sync to English version 2012-09-24 Sep 28, 2012
.hgtags Added tag 0.4 for changeset 8f28fa99c6f1 Sep 4, 2011
Makefile Remove kindle - didnt look right - I dont have the time Feb 1, 2013
README.md ver 2 init Apr 7, 2016
about-miekg.tex sync to the English version 2012-09-03 Sep 4, 2012
about-xingx.tex small tweak Apr 19, 2012
blocksbook.cls merge Dec 30, 2013
coderemarks.sty Fiddle about with the circle size Nov 9, 2013
draft.tex Init the repo.\nAdded the Chinese fonts. Apr 7, 2011
go-basics.tex 修正了一个拼写错误 May 25, 2016
go-beyond.tex Merge pull request #17 from onion7878/master May 13, 2015
go-cc-license.tex sync to the English version 2012-09-03 Sep 4, 2012
go-channels.tex merge from English version Jun 23, 2014
go-colophon.tex sync to English version 2012-10-20 Oct 26, 2012
go-communication.tex Fix a code error in example Aug 9, 2014
go-contributors.tex merge Dec 30, 2013
go-functions.tex fixed some miss-translated contents Oct 15, 2014
go-interfaces.tex 修正go-interfaces.tex翻译错误 Oct 10, 2014
go-nits-contributors.tex Add coderemark here too as spotted by Marco Ynema Nov 14, 2013
go-packages.tex merge Dec 30, 2013
go-preface.tex merge Dec 30, 2013
go-setup.tex fixed some miss-translated contents Oct 15, 2014
go.bib add fabian Jul 20, 2012
go.out fixed some miss-translated contents Oct 15, 2014
go.tex fixed \item syntax Jul 22, 2013
go_a4.tex merge Dec 30, 2013
todo.tex remove stuff I will never do Jun 12, 2013

README.md

学习 Go 语言(Ver II) - 一本学习 Go 语言的免费电子书。

本书当前包含:

  1. 安装与概述
    • 演示了如何安装 Go 语言,并通过逐行分析源代码示例展示了 Go 语言的基本特性。
  2. 类型,变量和控制流程
  3. 函数的编写和使用
  4. 包与项目
    • 函数和数据通过包组织在一起。这里将会看到如何编写包。对如何在包中使用单元测试也进行了介绍;
    • 如何对一个 Go 语言的项目的目录进行设计,以及如何使用 go 命令的 vendor 功能管理包的依赖。
  5. 结构体
    • 学习如何创建自定义数据类型,并在其上定义函数(即方法)。
  6. 接口
    • Go 并不支持传统意义上的面向对象。在 Go 中核心概念是接口。
  7. 并发
    • 通过关键字 go,可以在独立的调度中运行函数,这个并行执行的函数叫做 goroutine;
    • 通过 channel 可以在 goroutine 之间进行安全的数据通讯。
  8. 文件与通讯
    • 如何建立/读取/写如文件。以及网络相关内容。

每章包含若干个提供了答案的练习来帮助你提升。

当前正在撰写的是 Ver II 版本,放弃 LaTeX,转而采用 markdown。

查看 Ver I 版本