summaryrefslogtreecommitdiff
path: root/development/google-go-lang/README
diff options
context:
space:
mode:
Diffstat (limited to 'development/google-go-lang/README')
-rw-r--r--development/google-go-lang/README9
1 files changed, 5 insertions, 4 deletions
diff --git a/development/google-go-lang/README b/development/google-go-lang/README
index 955f284b3f..cc9bd19d5b 100644
--- a/development/google-go-lang/README
+++ b/development/google-go-lang/README
@@ -17,15 +17,16 @@ to and used, is the GOPATH environment variable. This variable can be colon
delimited. For example, once installing the built google-go-lang package, then
set in your user's ~/.bashrc something like:
- export GOPATH="$HOME/src/go"
+ export GOPATH="$HOME"
Then, you'll be able to use the `go` command to install an additional library
that will not need root permission and will be in the compiler's path.
Like so:
- go get labix.org/v2/mgo
+ go get golang.org/x/tools/cmd/godoc
-Now in ~/src/go, you'll have this library available!
+Now in ~/src you'll have this source code checked-out, and a binary built at
+~/bin/godoc
Since the golang idiom is very `go get'able as a limited user, installed
libraries from slackbuilds.org are located outside of GOROOT (which is only for
@@ -33,7 +34,7 @@ golang standard library), in /usr/share/gocode
By not setting a system-wide GOPATH defaulting to this location, then it is up
to the user of whether to include this system path as well, like:
- export GOPATH="$HOME/src/go:/usr/share/gocode"
+ export GOPATH="$HOME:/usr/share/gocode"
This system source directory is primarly only for buildtime of slackbuilds.