错误:
#cd .; git clone – https://github.com/gin-gonic/gin /Users/lizhen/go/src/github.com/gin-gonic/gin
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
package github.com/gin-gonic/gin: exit status 1
安装gin失败了
解决办法:使用代理。 在命令行里输入以下命令
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct