Documentation
¶
Index ¶
- func CamelCase(str string) string
- func Coalesce[T stringish](vals ...T) T
- func CoalescePointers[T any](vals ...*T) *T
- func CoalesceStrings(strs ...string) string
- func CoalesceWithFunc[T any](checkFunc func(T) bool, values ...T) (T, bool)
- func FirstParam[T any, U any](fp T, _ ...U) T
- func IsAlphaNumeric(r rune) bool
- func Must[T any](v T, err error) T
- func SnakeCase(str string) string
- func Ternary[T any](expr bool, trueVal T, falseVal T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Coalesce ¶
func Coalesce[T stringish](vals ...T) T
Returns the first non nil and non empty string
func CoalesceStrings ¶
Returns the first non-empty string
func CoalesceWithFunc ¶
Returns the first non-nil element that the provided function returns true for
func FirstParam ¶
returns the first value of a multi-return statement
func IsAlphaNumeric ¶ added in v0.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.