inflector

package
v1.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchCase

func MatchCase(s, pattern string) string

MatchCase transforms s to match the casing style of pattern.

func New

func UcFirst

func UcFirst(s string) string

UcFirst uppercases the first letter and lowercases the rest of the first word.

func UcWords

func UcWords(s string) string

UcWords uppercases the first letter of each word, lowercases the rest.

Types

type Inflector

type Inflector struct {
	// contains filtered or unexported fields
}

func (*Inflector) Language

func (r *Inflector) Language() pluralizer.Language

func (*Inflector) Plural

func (r *Inflector) Plural(word string) string

func (*Inflector) SetLanguage

func (r *Inflector) SetLanguage(language pluralizer.Language) pluralizer.Inflector

func (*Inflector) Singular

func (r *Inflector) Singular(word string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL