gomod_hello

gomod_hello

linux

export GO111MODULE=on
export GOPRIVATE=gitee.com/iiot_edge_platform,gitee.com/magus_iot   -------------注意
export GOPROXY=https://goproxy.cn,direct  
export GOPATH=/home/go_path/go_path
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin

windows

go env -w GOPRIVATE=gitee.com/iiot_edge_platform,gitee.com/magus_iot
上一篇:彻底搞懂golang的GOROOT和GOPATH


下一篇:Golang-开发环境搭建