Documentation ¶
Index ¶
- Variables
- func CamelCase(s string) string
- func CamelCaseLower(s string) string
- func CamelCaseUpper(s string) string
- func DotCase(s string) string
- func DotCaseLower(s string) string
- func DotCaseUpper(s string) string
- func FirstChar(s string) string
- func FirstCharLower(s string) string
- func FirstCharUpper(s string) string
- func IntToWord(i int, postfix string) string
- func Join(sep string, a []string) string
- func KebabCase(s string) string
- func KebabCaseLower(s string) string
- func KebabCaseUpper(s string) string
- func LowerCase(s string) string
- func LowerFirst(s string) string
- func PathCase(s string) string
- func PathCaseLower(s string) string
- func PathCaseUpper(s string) string
- func Pluralize(s string, i int) string
- func PopulateFuncMap() template.FuncMap
- func Replace(s, old, new string) string
- func SnakeCase(s string) string
- func SnakeCaseLower(s string) string
- func SnakeCaseUpper(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 CamelCaseLower ¶
CamelCase returns a string representation of the value in CamelCase.
func CamelCaseUpper ¶ added in v0.9.0
func DotCaseLower ¶
DotCaseLower returns a string representation of the value in dot.case
func DotCaseUpper ¶
DotCaseUpper 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 KebabCaseLower ¶
KebapCaseLower returns a string representation of the value in kebap-case.
func KebabCaseUpper ¶
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 PathCaseLower ¶
PathCaseLower returns a string representation of the value in path/case.
func PathCaseUpper ¶
PathCaseUpper 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 SnakeCaseUpper ¶
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.