在我的电脑设置GOPATH教程
https://blog.youkuaiyun.com/belalds/article/details/80076817
go在github上面说明
https://github.com/golang/go/wiki/SettingGOPATH#windows
因此我们可以通过
setx GOPATH %USERPROFILE%\go (this will set the GOPATH to your [home folder]\go e.g. setx GOPATH E:\go
来进行
设置成功!!!
Note that : If you’re using a version of Windows prior to Vista, this command may not work,
so you can also set environment variables by navigating to Control Panel → Sys‐
tem → Advanced → Environment Variables.