I am a total newbie and only just kicked off a beginners course on Go and failing at first hurdle of installation of all the bits you need to make it work so sorry if this is a dumb question. I've installed Go, Git and Visual Studio... After first installing Visual Studio I am trying to install the 12 Analysis tools for Go but everytime i try this it fails. Generally related to a "permission denied" error. Error message below. Any ideas why?
Installing 12 tools at /Documents/go/bin gocode gopkgs
go-outline go-symbols guru gorename dlv gocode-gomod godef godef-gomod goreturns golintInstalling github.com/mdempsky/gocode FAILED Installing github.com/uudashr/gopkgs/cmd/gopkgs FAILED Installing github.com/ramya-rao-a/go-outline FAILED Installing github.com/acroca/go-symbols FAILED Installing golang.org/x/tools/cmd/guru FAILED Installing golang.org/x/tools/cmd/gorename FAILED Installing github.com/derekparker/delve/cmd/dlv FAILED Installing github.com/stamblerre/gocode FAILED Installing github.com/rogpeppe/godef FAILED Installing github.com/ianthehat/godef FAILED Installing github.com/sqs/goreturns FAILED Installing golang.org/x/lint/golint FAILED
12 tools failed to install.
gocode: Error: Command failed: /usr/local/go/bin/go get -u -v github.com/mdempsky/gocode github.com/mdempsky/gocode (download) package github.com/mdempsky/gocode: mkdir /Documents/go: permission denied github.com/mdempsky/gocode (download) package github.com/mdempsky/gocode: mkdir /Documents/go: permission denied
gopkgs: Error: Command failed: /usr/local/go/bin/go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs github.com/uudashr/gopkgs (download) package github.com/uudashr/gopkgs/cmd/gopkgs: mkdir /Documents/go: permission denied github.com/uudashr/gopkgs (download) package github.com/uudashr/gopkgs/cmd/gopkgs: mkdir /Documents/go: permission denied