Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Camelize ¶ added in v0.25.0
Camelize converts the provided string to its "CamelCased" version (non alphanumeric characters are removed).
For example:
inflector.Camelize("send_email") // "SendEmail"
func Sanitize ¶
Sanitize sanitizes `str` by removing all characters satisfying `removePattern`. Returns an error if the pattern is not valid regex string.
func Singularize ¶ added in v0.25.0
Singularize converts the specified word into its singular version.
For example:
inflector.Singularize("people") // "person"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.