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 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 ¶
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 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 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 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 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.