Need help with gopl.io?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

adonovan
5.1K Stars 2.0K Forks 34 Commits 10 Opened issues

Description

Example programs from "The Go Programming Language"

Services available

!
?

Need anything else?

Contributors list

# 12,247
Go
golang
Shell
bazel
19 commits
# 8,183
Go
Shell
regular...
golang
11 commits
# 78,353
Go
Vim
unicode
The Jul...
1 commit

The Go Programming Language

This repository provides the downloadable example programs for the book, "The Go Programming Language"; see http://www.gopl.io.

These example programs are licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Creative Commons License

You can download, build, and run the programs with the following commands:

$ export GOPATH=$HOME/gobook            # choose workspace directory
$ go get gopl.io/ch1/helloworld         # fetch, build, install
$ $GOPATH/bin/helloworld                # run
Hello, 世界

Many of the programs contain comments of the form

//!+
and
//!-
. These comments bracket the parts of the programs that are excerpted in the book; you can safely ignore them. In a few cases, programs have been reformatted in an unnatural way so that they can be presented in stages in the book.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.