如下命令开启被关闭go mod
打开
go env -w GO111MODULE=on
关闭
go env -w GO111MODULE=off
私有仓库设置
go env -w GOPRIVATE=gitee.com/iiot_edge_platform,gitee.com/magus_iot
如下命令开启被关闭go mod
打开
go env -w GO111MODULE=on
关闭
go env -w GO111MODULE=off
私有仓库设置
go env -w GOPRIVATE=gitee.com/iiot_edge_platform,gitee.com/magus_iot