add default env

pull/135/head
kun 2020-02-17 14:19:30 +08:00
parent 0e2b5151e8
commit fa12c6beba
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ func init() {
// Enable Go module
os.Setenv("GO111MODULE", "on")
os.Setenv("GOPROXY", "direct")
os.Setenv("GOSUMDB", "off")
downloadRoot = getDownloadRoot()
}