diff options
Diffstat (limited to 'development/google-go-lang/README')
-rw-r--r-- | development/google-go-lang/README | 16 |
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`. |