Documentation ¶
Overview ¶
Package inflect provides an inflector.
Package inflect provides an inflector.
Index ¶
- Variables
- func Constantize(str string) string
- func FromNumber(str string, n int) string
- func Humanize(str string) string
- func Hyphenate(str string) string
- func LowerCamelCase(str string) string
- func Pluralize(str string) string
- func Singularize(str string) string
- func Titleize(str string) string
- func Underscore(str string) string
- func UpperCamelCase(str string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Language to use when converting a word from it's plural to // singular forms and vice versa. Language = "en" // Languages avaiable for converting a word from // it's plural to singular forms and vice versa. Languages = map[string]*types.LanguageType{ "en": languages.English, } )
Functions ¶
func Constantize ¶
Constantize converts a string to it's constantized version.
func FromNumber ¶
func LowerCamelCase ¶
LowerCamelCase converts a string to it's lower camel case version.
func Singularize ¶
func Underscore ¶
Underscore converts a string to it's underscored version.
func UpperCamelCase ¶
UpperCamelCase converts a string to it's upper camel case version.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package languages provides language rules to use with the inflect package.
|
Package languages provides language rules to use with the inflect package. |
Package types contains common types useful to the inflect package.
|
Package types contains common types useful to the inflect package. |
Click to show internal directories.
Click to hide internal directories.