Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

qiniu/gobook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

36 Commits

Repository files navigation

介绍

这里是《GO语言编程》一书中示例源代码。

环境配置

  1. 安装 go1

  2. 打开 ~/.bashrc,加入:

    export $GOBOOK=~/gobook #假设代码在 ~/gobook 下 source $GOBOOK/env.sh

  3. 保存 ~/.bashrc,并 source 之

运行代码

对于单文件程序,如sample.go,直接运行go run sample.go即可。

对于多文件的复杂样例,直接 go run 主程序文件即可。

About

The Go Programming Language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7

AltStyle によって変換されたページ (->オリジナル) /