summaryrefslogtreecommitdiffstats
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/README17
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!
+
+