Documentation
¶
Index ¶
- func Contract(m map[string]string, f func(string, string) string) []string
- func DefaultIf(value, defaultValue, condition string) string
- func DefaultIfEmpty(value, defaultValue string) string
- func ErrorMessages(errs []error) []string
- func Quote(s []string) []string
- func StringKeys(m map[string]string) []string
- func Transform(s []string, f func(string) string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultIf ¶
DefaultIf falls back to a default value if the passed value is equal to the condition parameter.
func DefaultIfEmpty ¶
DefaultIfEmpty falls back to a default value if the passed value is empty
func ErrorMessages ¶
ErrorMessages accumulates the error messages from slice of errors.
func Quote ¶
Quote takes a slice of strings and returns a slice of strings where each element of the input is put in double quotation marks.
func StringKeys ¶
StringKeys extracts the key of a map[string]string and returns them as a slice of strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.