Documentation ¶
Index ¶
- func GetEnvironmentVariableAsBool(key string, fallback bool) bool
- func GetEnvironmentVariableAsInteger(key string, fallback int) int
- func GetEnvironmentVariableAsString(key string, fallback string) string
- func HoursToDuration(hours time.Duration) time.Duration
- func MinutesToDuration(minutes time.Duration) time.Duration
- func Plural(count int, singular string) (result string)
- func SecondsToDuration(seconds time.Duration) time.Duration
- func SecondsToHuman(input int) (result string)
- func StructureToString(value interface{}) (string, error)
- func ToLowerAndReplace(value string, replace string, with string) string
- func ToLowerAndTrim(value string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvironmentVariableAsBool ¶
Get environment variable as a boolean
func GetEnvironmentVariableAsInteger ¶
Get environment variable as an integer
func GetEnvironmentVariableAsString ¶
Get environment variable as a string
func HoursToDuration ¶
Convert hours to duration
func MinutesToDuration ¶
Convert minutes to duration
func SecondsToDuration ¶
Convert seconds to duration
func SecondsToHuman ¶
func StructureToString ¶
func ToLowerAndReplace ¶
Convert string to lower case and replace given values
func ToLowerAndTrim ¶
Convert string to lower case and trim all whitespaces
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.