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

12 lines
163 B
Go
Raw Normal View History

2023-10-12 17:23:35 +00:00
package util
import "os"
func GetEnvWithDefault(key, defaultValue string) string {
val := os.Getenv(key)
if val != "" {
return val
}
return defaultValue
}