Documentation
¶
Overview ¶
Package templates provides a set of template functions for use in Go templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = template.FuncMap{ "firstLetter": func(s string) string { r, size := utf8.DecodeRuneInString(s) if size == 0 { return "x" } return strings.ToLower(string(r)) }, "title": func(s string) string { return cases.Title(language.English).String(s) }, }
FuncMap provides a set of template functions for use in Go templates.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.