funcs

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FuncMap = template.FuncMap{
	"suffixes":  Suffixes,
	"suffix":    suffix,
	"pathBase":  pathBase,
	"inMap":     inMap,
	"lcFirst":   LcFirst,
	"contains":  Contains,
	"incr":      incr,
	"toLower":   ToLower,
	"snake":     Snake,
	"kebabCase": KebabCase,
}

Functions

func Camel

func Camel(src string) string

func Contains added in v1.2.4

func Contains(name string, contains ...string) bool

Contains 包含

func KebabCase added in v1.2.6

func KebabCase(src string) string

func LcFirst

func LcFirst(src string) string

func Snake

func Snake(src string) string

func Suffixes

func Suffixes(name string, suffixList []string) bool

Suffixes 后缀

func ToLower

func ToLower(src 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