Documentation ¶
Index ¶
- func GetEnv(key, fallback string) string
- func GetSecret(plaintext, filename string) (string, error)
- func IsExcluded(s string, excludes []string) bool
- func IsIncluded(s string, includes []string) bool
- func MatchString(exp string, s string) bool
- func NewDuration(duration time.Duration) *time.Duration
- func NewFalse() *bool
- func NewTrue() *bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnv ¶
GetEnv retrieves the value of the environment variable named by the key or fallback if not found
func IsExcluded ¶
IsExcluded checks if s string is excluded in excludes If excludes is empty, assume false
func IsIncluded ¶
IsIncluded checks if s string is included in includes If includes is empty, assume true
func MatchString ¶
MatchString reports whether a string s contains any match of a regular expression.
func NewDuration ¶
NewDuration returns a duration pointer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.