Go command execution reports GOPATH not set problem

#go installation directory #go executable program directory

export GOROOT=/usr/local/go

export GOPATH=/Users/username/gopath

export PATH=$GOROOT/bin$GOPATH/bin

#After the configuration is complete source /etc/profile

#windows configuration is relatively simple, restart the machine after creating two new environment variables GOROOT, GOPATH configuration...

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324171375&siteId=291194637