Documentation ¶
Overview ¶
Package xstrings provides extended utility functions for strings
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitAndTrim ¶
SplitAndTrim is like strings.Split but spaces in each of item are trimmed
func SplitAndTrimAsMap ¶
SplitAndTrimAsMap is like SplitAndTrim but returns an map[string]bool where the map key is the string flagment included in
func ToSnakeCase ¶
ToSnakeCase converts the string to the one by snake case.
Example ¶
fmt.Println( ToSnakeCase("FooBar"), ToSnakeCase("APIDoc"), ToSnakeCase("OK"), ToSnakeCase("IsOK"), ToSnakeCase("camelCase"), )
Output: foo_bar api_doc ok is_ok camel_case
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.