diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2013-01-05 19:45:29 +0100 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2013-01-09 18:52:22 -0500 |
commit | fdb29e78157187d8bd031eb170107985bb076d08 (patch) | |
tree | 58d7e38c12c57145b8c2878b329cc4e552376023 /development/google-go-lang/README | |
parent | f57720a5c78ac6788ce819acadef8b4b8e25bcc3 (diff) | |
download | slackbuilds-fdb29e78157187d8bd031eb170107985bb076d08.tar.gz |
development/google-go-lang: Updated for version 1.0.3.
Switch to building from source, many other
changes and additions
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/google-go-lang/README')
-rw-r--r-- | development/google-go-lang/README | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/development/google-go-lang/README b/development/google-go-lang/README index 736eb86701..a276a9cf32 100644 --- a/development/google-go-lang/README +++ b/development/google-go-lang/README @@ -11,3 +11,20 @@ The tools are added to the path by putting go.sh and go.csh files in /etc/profile.d and letting the system's /etc/profile or /etc/csh.login pick it up. If you want to add any of Go's environment variables you can add them there. + +Also, to easily setup a user-independent path for Go libraries to be installed +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" + +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 + +Now in ~/src/go, you'll have this library available! + + |