一、GO windows安装
1、点击下载GO:https://golang.google.cn/

2、GO环境配置


3、看看demo
采用GoLand编辑器


二、gin框架安装
go get -u github.com/gin-gonic/gin
(时间有点长,需要等待半个小时左右)

出现如下错误(缺什么就直接 go get github.com/xxx/xxx),执行:go get -u github.com/go-playground/locales(耗时也比较长,请耐心等待半小时)

GoLand编译发生如下错误:

执行:go get gopkg.in/yaml.v2(等待时间大概10分钟)

编译又发现如下错误

分别执行(时间2分钟)
go get github.com/leodido/go-urn
go get github.com/mattn/go-isatty

点击获取官方demo:https://github.com/gin-gonic/examples/blob/master/basic/main.go
编译,运行,大功告成,完美运行,perfect:

有疑问加站长微信联系(非本文作者)
