add default env

pull/134/head
kun 2020-02-17 14:19:30 +08:00
parent 0e2b5151e8
commit c4753b23ad
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()
}