在mac上安装Go语言开发包

1.去官网下载安装包

https://golang.google.cn/dl/

2.双击安装,一路默认安装即可。(默认安装路径为/usr/local)

3.安装完成后进入/go/bin目录下运行 ./go version

4.配置环境变量

  1. sudo vim ~/.bash_profile
  2. 编辑
  3. 执行source ~/.bash_profile
发布了74 篇原创文章 · 获赞 72 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/weixin_43713498/article/details/104057360
今日推荐