mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 01:38:50 +02:00
implement godoxy-agent
This commit is contained in:
@@ -86,6 +86,10 @@ func GetEnvBool(key string, defaultValue bool) bool {
|
||||
return GetEnv(key, defaultValue, strconv.ParseBool)
|
||||
}
|
||||
|
||||
func GetEnvInt(key string, defaultValue int) int {
|
||||
return GetEnv(key, defaultValue, strconv.Atoi)
|
||||
}
|
||||
|
||||
func GetAddrEnv(key, defaultValue, scheme string) (addr, host, port, fullURL string) {
|
||||
addr = GetEnvString(key, defaultValue)
|
||||
if addr == "" {
|
||||
|
||||
Reference in New Issue
Block a user