ovpn-certman/settings/settings.go

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
}