package inflection
Import Path
github.com/jinzhu/inflection (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Involved Source Files
d-> inflections.go
Exported Type Names
type Irregular (struct)
Irregular is a hard replace inflection,
containing both singular and plural forms
type IrregularSlice ([])
IrregularSlice is a slice of Irregular inflections
func GetIrregular() IrregularSlice
func SetIrregular(inflections IrregularSlice)
type Regular (struct)
Regular is a regexp find replace inflection
type RegularSlice ([])
RegularSlice is a slice of Regular inflections
func GetPlural() RegularSlice
func GetSingular() RegularSlice
func SetPlural(inflections RegularSlice)
func SetSingular(inflections RegularSlice)
Exported Values
func AddIrregular(singular, plural string)
AddIrregular adds an irregular inflection
func AddSingular(find, replace string)
AddSingular adds a singular inflection
func AddUncountable(values ...string)
AddUncountable adds an uncountable inflection
func GetIrregular() IrregularSlice
GetIrregular retrieves the irregular inflection values
func GetPlural() RegularSlice
GetPlural retrieves the plural inflection values
func GetSingular() RegularSlice
GetSingular retrieves the singular inflection values
func GetUncountable() []string
GetUncountable retrieves the uncountable inflection values
func SetIrregular(inflections IrregularSlice)
SetIrregular sets the irregular inflections slice
func SetPlural(inflections RegularSlice)
SetPlural sets the plural inflections slice
func SetSingular(inflections RegularSlice)
SetSingular sets the singular inflections slice
func SetUncountable(inflections []string)
SetUncountable sets the uncountable inflections slice
![]() |
The pages are generated with Golds v0.1.6. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project and developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |