Documentation ¶
Index ¶
- Variables
- func AppendList(list []string, s string) []string
- func CamelLowerCase(s string) string
- func CamelTitleCase(s string) string
- func CamelUpperCase(s string) string
- func CollectFields(items any, fieldName string) ([]string, error)
- func Contains(a []string, s string) bool
- func DotLowerCase(s string) string
- func DotTitleCase(s string) string
- func DotUpperCase(s string) string
- func FirstChar(s string) string
- func FirstCharLower(s string) string
- func FirstCharUpper(s string) string
- func GetEmptyStringList() []string
- func IndexOf(a []any, s string) int
- func IntToWord(i int, prefix string, postfix string, wc strcase.WordCase) string
- func IntToWordLower(i int, prefix string, postfix string) string
- func IntToWordTitle(i int, prefix string, postfix string) string
- func IntToWordUpper(i int, prefix string, postfix string) string
- func Join(sep string, a []string) string
- func KebabLowerCase(s string) string
- func KebabTitleCase(s string) string
- func KebabUpperCase(s string) string
- func LowerCase(s string) string
- func LowerFirst(s string) string
- func NewLine() string
- func PathLowerCase(s string) string
- func PathTitleCase(s string) string
- func PathUpperCase(s string) string
- func Pluralize(s string, i int) string
- func PopulateFuncMap(fm template.FuncMap)
- func Replace(s, old, new string) string
- func SnakeCaseLower(s string) string
- func SnakeTitleCase(s string) string
- func SnakeUpperCase(s string) string
- func SpaceLowerCase(s string) string
- func SpaceTitleCase(s string) string
- func SpaceUpperCase(s string) string
- func Split(s, sep string) []string
- func SplitFirst(s, sep string) string
- func SplitLast(s, sep string) string
- func ToJson(v any) (string, error)
- func Trim(s string) string
- func TrimPrefix(s, prefix string) string
- func TrimSuffix(s, postfix string) string
- func Unique(inList []string) []string
- func UpperCase(s string) string
- func UpperFirst(s string) string
Constants ¶
This section is empty.
Variables ¶
var WORDS = []string{
"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten",
"eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty",
}
Functions ¶
func AppendList ¶ added in v0.38.0
func CamelLowerCase ¶
CamelCase returns a string representation of the value in CamelCase.
func CamelTitleCase ¶
CamelTitleCase returns a string representation of the value in CamelTitleCase.
func CamelUpperCase ¶
CamelUpperCase returns a string representation of the value in CamelCase.
func CollectFields ¶ added in v0.38.0
func DotLowerCase ¶
DotLowerCase returns a string representation of the value in dot.case
func DotTitleCase ¶
DotTitleCase returns a string representation of the value in dot.case
func DotUpperCase ¶
DotUpperCase returns a string representation of the value in DOT.CASE
func FirstCharLower ¶
FirstCharLower returns the first character of the value in lowercase.
func FirstCharUpper ¶
FirstCharUpper returns the first character of the value in UPPER CASE.
func GetEmptyStringList ¶ added in v0.38.0
func GetEmptyStringList() []string
func KebabLowerCase ¶
KebabLowerCase returns a string representation of the value in kebap-case.
func KebabTitleCase ¶
KebabTitleCase returns a string representation of the value in kebab-case.
func KebabUpperCase ¶
KebapCaseUpper returns a string representation of the value in KEBAP-CASE.
func LowerFirst ¶
LowerFirst returns a string representation of the value with the first character in lowercase.
func PathLowerCase ¶
PathLowerCase returns a string representation of the value in path/case.
func PathTitleCase ¶
PathTitleCase returns a string representation of the value in path/case.
func PathUpperCase ¶
PathUpperCase returns a string representation of the value in PATH/CASE.
func PopulateFuncMap ¶ added in v0.38.0
func SnakeCaseLower ¶
SnakeCaseLower returns a string representation of the value in snake_case.
func SnakeTitleCase ¶
SnakeTitleCase returns a string representation of the value in snake_case.
func SnakeUpperCase ¶
First returns the first character of the value.
func SpaceLowerCase ¶ added in v0.30.0
SpaceLowerCase returns a string representation of the value in space lower case.
func SpaceTitleCase ¶ added in v0.30.0
SpaceTitleCase returns a string representation of the value in Space Title Case.
func SpaceUpperCase ¶ added in v0.30.0
SpaceUpperCase returns a string representation of the value in SPACE UPPER CASE.
func SplitFirst ¶ added in v0.30.0
SplitFirst splits the string s at the first occurrence of sep and returns the result.
func SplitLast ¶ added in v0.30.0
SplitLast splits the string s at the last occurrence of sep and returns the result.
func TrimPrefix ¶
func TrimSuffix ¶
func UpperFirst ¶
UpperFirst returns a string representation of the value with the first character in UPPER CASE.
Types ¶
This section is empty.