mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 01:38:50 +02: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"
|
"github.com/yusing/goutils/env"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
|
||||||
env.SetPrefixes("GODOXY_", "GOPROXY_", "")
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
IsTest = env.GetEnvBool("TEST", false) || strings.HasSuffix(os.Args[0], ".test")
|
IsTest = env.GetEnvBool("TEST", false) || strings.HasSuffix(os.Args[0], ".test")
|
||||||
IsDebug = env.GetEnvBool("DEBUG", IsTest)
|
IsDebug = env.GetEnvBool("DEBUG", IsTest)
|
||||||
|
|||||||
Reference in New Issue
Block a user