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