Gopath not set in go command execution

Why are there a series of technical challenges behind “OMG buy it”>>>

#Go installation directory?Go executor directory

exportGOROOT=/usr/local/go

export GOPATH=/Users/username/gopath

export PATH=$GOROOT/bin$GOPATH/bin

#Source/etc/profile after configuration

#Windows configuration is relatively simple, in the new two environment variables, go root, go path configuration, restart the machine after playing

Similar Posts: