certman/settings/settings.go
2018-04-22 16:55:50 +02:00

10 lines
149 B
Go

package settings
import "os"
func Get(key, defaultVal string) string {
if val := os.Getenv(key); val != "" {
return val
}
return defaultVal
}