Documentation ¶ Index ¶ Variables func Camel(src string) string func Contains(name string, contains ...string) bool func KebabCase(src string) string func LcFirst(src string) string func Snake(src string) string func Suffixes(name string, suffixList []string) bool func ToLower(src string) string 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. Source Files ¶ View all Source files funcs.go Click to show internal directories. Click to hide internal directories.