diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2017-10-30 08:21:58 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-10-30 19:44:19 +0700 |
commit | a50313d9e21afebf0454878c8c9a1786105c6965 (patch) | |
tree | f20243b3c1000f0896a9308fc319966fc55b134e /development/google-go-lang/README | |
parent | edf41f96501bb82ed7f1ff6a87fd32806dca80cd (diff) | |
download | slackbuilds-a50313d9e21afebf0454878c8c9a1786105c6965.tar.gz |
development/google-go-lang: Updated for version 1.8.5
and tidy up the example in the README
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/google-go-lang/README')
-rw-r--r-- | development/google-go-lang/README | 9 |
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. |