inflect

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Singular = rules.Singularize
View Source
var Tableize = inflect.Tableize
View Source
var TemplateFunctions = template.FuncMap{
	"lower":               strings.ToLower,
	"upper":               strings.ToUpper,
	"pascal":              Pascal,
	"plural":              plural,
	"singular":            rules.Singularize,
	"snake":               Snake,
	"join":                strings.Join,
	"camel":               camel,
	"firstWordUpperCamel": firstWordUpperCamel,
	"firstWordLowerCamel": firstWordLowerCamel,
	"firstLetterLower":    firstLetterLower,
	"sub":                 sub,
	"add":                 add,
	"addStr":              addStr,

	"goType":          goType,
	"goChangeSetType": goChangeSetType,
	"goKeywordFix":    goKeywordFix,
	"goModelType":     goModelType,
}

Functions

func Pascal

func Pascal(s string) string

func Snake

func Snake(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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