fix: env parsing

This commit is contained in:
yusing
2025-10-11 13:37:18 +08:00
parent ea8be56bf8
commit 804c7eec60
2 changed files with 1 additions and 5 deletions

Submodule goutils updated: 78b59df11b...2fa6b6c3e5

View File

@@ -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)