Bash
编辑~/.bash_profile文件,添加以下代码
vim ~/.bash_profile

保存,然后执行
source ~/.bash_profile
Zsh
编辑~/.zshrc文件,添加以下代码
vim ~/.zshrc

保存,然后执行
source ~/.zshrc
查看go环境变量
go env
编辑~/.bash_profile文件,添加以下代码
vim ~/.bash_profile
保存,然后执行
source ~/.bash_profile
编辑~/.zshrc文件,添加以下代码
vim ~/.zshrc
保存,然后执行
source ~/.zshrc
查看go环境变量
go env
本文标题:mac下设置gopath环境变量
本文链接:https://www.haomeiwen.com/subject/bebmkqtx.html
网友评论