Documentation ¶
Index ¶
- Variables
- func CamelLowerCase(s string) string
- func CamelTitleCase(s string) string
- func CamelUpperCase(s string) string
- 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 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() 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 TrimPrefix(s, prefix string) string
- func TrimSuffix(s, postfix 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 CamelLowerCase ¶ added in v0.15.6
CamelCase returns a string representation of the value in CamelCase.
func CamelTitleCase ¶ added in v0.15.6
CamelTitleCase returns a string representation of the value in CamelTitleCase.
func CamelUpperCase ¶ added in v0.15.6
CamelUpperCase returns a string representation of the value in CamelCase.
func DotLowerCase ¶ added in v0.15.6
DotLowerCase returns a string representation of the value in dot.case
func DotTitleCase ¶ added in v0.15.6
DotTitleCase returns a string representation of the value in dot.case
func DotUpperCase ¶ added in v0.15.6
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 IntToWordLower ¶ added in v0.15.5
func IntToWordTitle ¶ added in v0.15.5
func IntToWordUpper ¶ added in v0.15.5
func KebabLowerCase ¶ added in v0.15.6
KebabLowerCase returns a string representation of the value in kebap-case.
func KebabTitleCase ¶ added in v0.15.6
KebabTitleCase returns a string representation of the value in kebab-case.
func KebabUpperCase ¶ added in v0.15.6
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 ¶ added in v0.15.6
PathLowerCase returns a string representation of the value in path/case.
func PathTitleCase ¶ added in v0.15.6
PathTitleCase returns a string representation of the value in path/case.
func PathUpperCase ¶ added in v0.15.6
PathUpperCase returns a string representation of the value in PATH/CASE.
func PopulateFuncMap ¶
func SnakeCaseLower ¶
SnakeCaseLower returns a string representation of the value in snake_case.
func SnakeTitleCase ¶ added in v0.15.6
SnakeTitleCase returns a string representation of the value in snake_case.
func SnakeUpperCase ¶ added in v0.15.6
First returns the first character of the value.
func TrimPrefix ¶ added in v0.8.0
func TrimSuffix ¶ added in v0.8.0
func UpperFirst ¶
UpperFirst returns a string representation of the value with the first character in UPPER CASE.
Types ¶
This section is empty.