1

Go语言环境安装及如何使用Go多版本(Mac)

 1 year ago
source link: https://zsmhub.github.io/post/golang/go%E8%AF%AD%E8%A8%80%E7%8E%AF%E5%A2%83%E5%AE%89%E8%A3%85%E5%8F%8A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8go%E5%A4%9A%E7%89%88%E6%9C%ACmac/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Go语言环境安装及如何使用Go多版本(Mac)

2022-07-06 约 167 字 预计阅读 1 分钟

go环境的卸载

  1. pkg方式安装go?

    删除/usr/local下的go目录即可

    sudo rm -rf /usr/local/go
    
  2. brew方式安装go?

    brew uninstall [email protected]
    

使用brew安装

# 查看go相关版本
brew search go

# 安装最新版本的go
brew install go

# 安装1.14版本的go
brew install [email protected]

使用brew切换版本

# 解绑当前版本的绑定
brew unlink go

# 绑定新版本的关联关系
brew link [email protected]

# 查看版本号
go version

文章作者 ZsmHub

上次更新 2022-07-06

许可协议 CC BY-NC-ND 4.0

👍🏻 喜欢文章 👀
下一篇

Gitalking ...

Hugo 强力驱动 | 主题 - Even

© 2019 - 2022 ZsmHub


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK