Russ Cox | d27fa94 | 2009-11-08 09:57:37 -0800 | [diff] [blame] | 1 | This is the source code repository for the Go programming language. |
| 2 | |
| 3 | For documentation about how to install and use Go, |
Rob Pike | 624f9da | 2013-11-20 13:47:37 -0800 | [diff] [blame] | 4 | visit http://golang.org/ or load doc/install-source.html |
| 5 | in your web browser. |
Russ Cox | d27fa94 | 2009-11-08 09:57:37 -0800 | [diff] [blame] | 6 | |
| 7 | After installing Go, you can view a nicely formatted |
Rob Pike | 624f9da | 2013-11-20 13:47:37 -0800 | [diff] [blame] | 8 | doc/install-source.html by running godoc --http=:6060 |
| 9 | and then visiting http://localhost:6060/doc/install/source. |
Russ Cox | d27fa94 | 2009-11-08 09:57:37 -0800 | [diff] [blame] | 10 | |
| 11 | Unless otherwise noted, the Go source files are distributed |
| 12 | under the BSD-style license found in the LICENSE file. |
Andrew Gerrand | 3402c5e | 2010-07-30 14:00:59 +1000 | [diff] [blame] | 13 | |
| 14 | -- |
| 15 | |
| 16 | Binary Distribution Notes |
| 17 | |
Russ Cox | 86920ad | 2010-08-24 20:00:50 -0400 | [diff] [blame] | 18 | If you have just untarred a binary Go distribution, you need to set |
| 19 | the environment variable $GOROOT to the full path of the go |
| 20 | directory (the one containing this README). You can omit the |
| 21 | variable if you unpack it into /usr/local/go, or if you rebuild |
| 22 | from sources by running all.bash (see doc/install.html). |
| 23 | You should also add the Go binary directory $GOROOT/bin |
| 24 | to your shell's path. |
Andrew Gerrand | 3402c5e | 2010-07-30 14:00:59 +1000 | [diff] [blame] | 25 | |
Russ Cox | 86920ad | 2010-08-24 20:00:50 -0400 | [diff] [blame] | 26 | For example, if you extracted the tar file into $HOME/go, you might |
| 27 | put the following in your .profile: |
Andrew Gerrand | 3402c5e | 2010-07-30 14:00:59 +1000 | [diff] [blame] | 28 | |
Russ Cox | 86920ad | 2010-08-24 20:00:50 -0400 | [diff] [blame] | 29 | export GOROOT=$HOME/go |
| 30 | export PATH=$PATH:$GOROOT/bin |
Andrew Gerrand | 3402c5e | 2010-07-30 14:00:59 +1000 | [diff] [blame] | 31 | |
Russ Cox | 86920ad | 2010-08-24 20:00:50 -0400 | [diff] [blame] | 32 | See doc/install.html for more details. |