超时。。。超时。。。
下载GO模块一直超时,因此换到国内源,方便模块下载
正文
开启Go的MODULE支持
export GO111MODULE=on
软件源替换
export GOPROXY=https://goproxy.cn,direct
direct为cn镜像没有找到会按照默认找
本文借鉴:https://www.cnblogs.com/chnmig/p/11345600.html