更新时间:2021-12-05 15:30:11
未设置路径.
找到go lang的安装目录. (例如linux)
find installed directory of go lang. (e.g linux )
去哪里
然后将其导出到var以下.
then export below var.
export GOPATH = $ HOME/go导出PATH = $ PATH:$ GOPATH/bin
export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin
这些导出的变量范围仅限于当前终端,因此***将其设置为文件〜/.bashrc
these exported variable scope is limited to current terminal only so better to set into file ~/.bashrc