查了很多资料,只有这篇有用,解决办法请参考这里 https://blog.csdn.net/Jiangzhiqi4551/article/details/116174524
使用brew install go安装完成以后,在home brew命令行执行go version遇到报错:
go: cannot find GOROOT directory: /opt/homebrew/bin/go
解决方法:export GOROOT="$(brew --prefix golang)/libexec" 参考这里 https://stackoverflow.com/questions/60406755/cannot-do-any-go-command-anymore
TRANSLATE with