qiniu / Gobook
The Go Programming Language
Stars: ✭ 347
Programming Languages
go
31211 projects - #10 most used programming language
介绍
这里是《GO语言编程》一书中示例源代码。
环境配置
-
安装 go1
-
打开 ~/.bashrc,加入:
export $GOBOOK=~/gobook #假设代码在 ~/gobook 下 source $GOBOOK/env.sh
-
保存 ~/.bashrc,并 source 之
运行代码
对于单文件程序,如sample.go,直接运行go run sample.go即可。
对于多文件的复杂样例,直接 go run 主程序文件即可。
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].