From d8edc7ee6199d078e0c7aa7f29d5a6fde43e1cfb Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Thu, 30 Jan 2014 10:40:32 +0100 Subject: development/google-go-lang: Updated for version 1.2. Signed-off-by: Matteo Bernardini --- development/google-go-lang/README | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'development/google-go-lang/README') 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`. -- cgit v1.2.3