1.30.2.1. Golang

参考
quickstart-golang


go语言 https://golang.org/project/ 源码https://golang.org/dl/

mac 下安装go环境

执行brew install go 未安装brew则先安装brew 见文章末 配置环境变量 1. 设置goroot 2. 设置gopath goroot和go path都设置到启动linux其中项中 执行 sudo vi /etc/profile 加入

1.30.2.2. go config

export PATH=$PATH:/usr/local/opt/go/libexec/bin export GOPATH=/Users/xxx/go 执行wq! 强制保存

ps: 安装 brew

1.30.2.3. 在终端输入命令

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

1.30.2.4. 安装后更新下

brew update


1、

2、

3、

4、

5、

6、

7、

8、

9、

10、

11、

12、

13、

14、

15、

16、

17、

18、

19、

20、

21、

22、

23、

24、

25、
























Copyright © 2018-2021 | Distributed under CC BY 4.0 | Peter all right reserved,powered by Gitbook Updated at 2023-03-25 00:08:43

results matching ""

    No results matching ""