Posts

Installing Go Lang

Setting custom GOPATH https://github.com/golang/go/wiki/SettingGOPATH

Useful commands

See the current Go path go env GOPATH Run a single go file go run filename.go build the final go application go build

Installing packages manually

go install: no install location for directory E:\...\...\src outside GOPATH         For more details see: 'go help gopath' Install the defined package automatically Need to check the GOPATH directory first which is complicated.. Make sure that GOPATH is applied to current Go project go get Install the defined package manually Can just call go install github.com/gorilla/mux to install your desire package