Documentation ¶
Overview ¶
Package inflect provides template functions for the inflection of words.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Namespace ¶
type Namespace struct{}
Namespace provides template functions for the "inflect" namespace.
func New ¶
func New() *Namespace
New returns a new instance of the inflect-namespaced template functions.
func (*Namespace) Humanize ¶
Humanize returns the humanized form of a single parameter.
If the parameter is either an integer or a string containing an integer value, the behavior is to add the appropriate ordinal.
Example: "my-first-post" -> "My first post" Example: "103" -> "103rd" Example: 52 -> "52nd"
func (*Namespace) Singularize ¶
Singularize returns the singular form of a single word.
Click to show internal directories.
Click to hide internal directories.