summaryrefslogtreecommitdiffstats
path: root/development/google-go-lang/README
diff options
context:
space:
mode:
author Vincent Batts <vbatts@hashbangbash.com>2014-01-30 10:40:32 +0100
committer Robby Workman <rworkman@slackbuilds.org>2014-02-01 00:40:45 -0600
commitd8edc7ee6199d078e0c7aa7f29d5a6fde43e1cfb (patch)
tree4afd44bf14de1a29e8eec2005f01dd8d1b50373f /development/google-go-lang/README
parentea5faca02176d19785dc444c22caa2798a4787a5 (diff)
downloadslackbuilds-d8edc7ee6199d078e0c7aa7f29d5a6fde43e1cfb.tar.gz
slackbuilds-d8edc7ee6199d078e0c7aa7f29d5a6fde43e1cfb.tar.xz
development/google-go-lang: Updated for version 1.2.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/google-go-lang/README')
-rw-r--r--development/google-go-lang/README16
1 files changed, 16 insertions, 0 deletions
diff --git a/development/google-go-lang/README b/development/google-go-lang/README
index a276a9cf32..7e8341dcf2 100644
--- a/development/google-go-lang/README
+++ b/development/google-go-lang/README
@@ -27,4 +27,20 @@ Like so:
Now in ~/src/go, you'll have this library available!
+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
+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"
+
+This system source directory is primarly only for buildtime of slackbuilds.
+
+This is because `go get' iterates through the paths provided, looking for
+matching imports. If a match is not found, then is cloned to the first path
+provided. You would not want this to be a system path, as to need root
+privilege to clone source.
+
+As of go1.2, the 'go doc ...' command has been relocated to the go.tools
+library (golang-googlecode-gotools), which provide `godoc`.