2021年3月22日星期一

How to set GOMOD in MacOS

I'm using this cmd to set GOMOD in .zshrc file:

unset GOMOD &&  go env -w GOMOD=$HOME/MyProj/Proj1/go.mod  

But receive error:

go env -w: GOMOD cannot be modified  

How to fix it?

https://stackoverflow.com/questions/66756529/how-to-set-gomod-in-macos March 23, 2021 at 10:41AM

没有评论:

发表评论