1
0
Fork 0
hats/internal/util/os.go

12 lines
163 B
Go

package util
import "os"
func GetEnvWithDefault(key, defaultValue string) string {
val := os.Getenv(key)
if val != "" {
return val
}
return defaultValue
}