When you run go
install Go looks for $GOBIN env
variable path. Either you need to set your $GOBIN to $GOPATH/bin
$ export GOBIN=$GOPATH/bin
and/or add $GOBIN to
your OS search path
$ export PATH=$PATH:$GOBIN
To use the command without getting the error.
本文介绍如何正确设置Go的环境变量,包括$GOBIN和$GOPATH等,确保可以在命令行中顺利使用Go的相关命令,避免因环境配置不当导致的错误。

被折叠的 条评论
为什么被折叠?



