// GetEnvAsStringOrFallback returns the env variable for the given key // and falls back to the given defaultValue if not set func GetEnvAsStringOrFallback(key, defaultValue string) string { … } // GetEnvAsIntOrFallback returns the env variable (parsed as integer) for // the given key and falls back to the given defaultValue if not set func GetEnvAsIntOrFallback(key string, defaultValue int) (int, error) { … } // GetEnvAsFloat64OrFallback returns the env variable (parsed as float64) for // the given key and falls back to the given defaultValue if not set func GetEnvAsFloat64OrFallback(key string, defaultValue float64) (float64, error) { … }