package
0.0.0-20231113132835-3586578317d2
Repository: https://github.com/monimesl/operator-helper.git
Documentation: pkg.go.dev

# Functions

Contains check if the haystack contains the key.
ContainsWithPrefix check if the haystack contains a string with the prefix.
CreateConfigFromYamlString create a config string from a key-value map updated with the yaml extras excluding exclusions.
Float64Or get the envVar as float64 otherwise the default.
Int32Or get the envVar as int32 otherwise the default.
Int64Or get the envVar as int64 otherwise the default.
IsOrdinalObjectIdle checks whether the ordinal object is idle.
RandomBytes generates a random bytes of len len or error.
RandomString generates a random base64 string of length len or err.
Remove returns a slice of haystack with the key removed if present otherwise returns the haystack itself.
RequireFloat64 returns the env variable as int64 or panic.
RequireValue returns the env Value or panic if none exists.
Value returns the environment value with white space trimmed.
ValueOr returns the value of Value or default if none exists.