Golang 学习与踩坑记(1)

First:安装 golang in mac.

https://golang.google.cn,

go to the web and download golang and install it.

 

Second:configurate the env for go.

重新打开terminal :输入语句go env 查看golang 的环境情况。

goroot go语言的编译文件 gopath go项目的库依赖

 

Third:Install GO IDE :GOLand jetbrain

安装go语言的开发工具

 

 Four:打开goland下载学习代码 https://github.com/studygolang/studygolang

 

1)git clone https://github.com/studygolang/studygolang

2) 下载 gvt 依赖管理工具, go get github.com

下载后将 gvt 加入 PATH 中。

/Users/test/go/bin 文件夹

export PATH=$PATH:/Users/test/go/bin

cmd下执行gvt可以检验是否添加path 成功。

start.sh之间检查 bin文件夹是否生成OK.

     下载安装依赖

cd 到 studygolang 源码目录

安装运行,学习

 

http://127.0.0.1:8088

 

posted on 2019-02-10 13:19  esalesoft  阅读(87)  评论(0)    收藏  举报

导航