Documentation
      ¶
    
    
  
    
  
    Index ¶
- func AnyToInt64(value any) int64
 - func CleanupNames(s string) string
 - func ConstantStringFromRegex(regex string) string
 - func Filter[T any](input []T, predicate func(T) bool) []T
 - func Indent(input string, spaces int) string
 - func ItemInList[T comparable](needle T, haystack []T) bool
 - func Keys[K comparable, V any](inputMap map[K]V) []K
 - func LowerCamelCase(s string) string
 - func Map[T any, O any](input []T, mapper func(T) O) []O
 - func RegexMatchesConstantString(regex string) bool
 - func Singularize(input string) string
 - func SnakeCase(s string) string
 - func StringInListEqualFold(needle string, haystack []string) bool
 - func ToPtr[T any](v T) *T
 - func UpperCamelCase(s string) string
 - func UpperSnakeCase(s string) string
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyToInt64 ¶ added in v0.0.6
func CleanupNames ¶
CleanupNames removes all non-alphanumeric characters
func ConstantStringFromRegex ¶
func ItemInList ¶
func ItemInList[T comparable](needle T, haystack []T) bool
func Keys ¶
func Keys[K comparable, V any](inputMap map[K]V) []K
func LowerCamelCase ¶
func RegexMatchesConstantString ¶
naive way of checking if the input regex describes a constant string, or something else. ex: `^math$` or `^reduce$` would return true, while `^foo[0-9]+$` wouldn't
func Singularize ¶
func StringInListEqualFold ¶
func UpperCamelCase ¶
func UpperSnakeCase ¶
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.