mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
fix: env parsing
This commit is contained in:
2
goutils
2
goutils
Submodule goutils updated: 78b59df11b...2fa6b6c3e5
@@ -8,10 +8,6 @@ import (
|
||||
"github.com/yusing/goutils/env"
|
||||
)
|
||||
|
||||
func init() {
|
||||
env.SetPrefixes("GODOXY_", "GOPROXY_", "")
|
||||
}
|
||||
|
||||
var (
|
||||
IsTest = env.GetEnvBool("TEST", false) || strings.HasSuffix(os.Args[0], ".test")
|
||||
IsDebug = env.GetEnvBool("DEBUG", IsTest)
|
||||
|
||||
Reference in New Issue
Block a user