1.下载git
网址http://git-scm.com/download
安装git后,在环境变量path中添加C:\Program Files\Git\bin 和 C:\Program Files\Git\cmd
2.安装gin框架
go get -u github.com/gin-gonic/gin
安装完成后会在pkg文件夹里增加内容
用下面代码写一个简单的接口F5运行
windows是在浏览器里打开http://localhost:8080/list
可以看到接口返回的消息