Documentation ¶
Index ¶
- Variables
- func Args(args ...interface{}) map[string]interface{}
- func Humanize(s string) string
- func Humanize1024(s string) string
- func HumanizeDuration(s string) string
- func HumanizePercentage(s string) string
- func HumanizePercentageH(s string) string
- func ReReplaceAll(pattern, repl, text string) string
- func Timeformat(ts int64, pattern ...string) string
- func Timestamp(pattern ...string) string
- func Unescaped(str string) interface{}
- func Urlconvert(str string) interface{}
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateFuncMap = template.FuncMap{ "unescaped": Unescaped, "urlconvert": Urlconvert, "timeformat": Timeformat, "timestamp": Timestamp, "args": Args, "reReplaceAll": ReReplaceAll, "match": regexp.MatchString, "toUpper": strings.ToUpper, "toLower": strings.ToLower, "contains": strings.Contains, "humanize": Humanize, "humanize1024": Humanize1024, "humanizeDuration": HumanizeDuration, "humanizePercentage": HumanizePercentage, "humanizePercentageH": HumanizePercentageH, }
Functions ¶
func Humanize1024 ¶ added in v5.9.2
func HumanizeDuration ¶ added in v5.9.2
func HumanizePercentage ¶ added in v5.9.2
func HumanizePercentageH ¶ added in v5.9.2
func ReReplaceAll ¶ added in v5.9.2
func Timeformat ¶ added in v5.9.2
func Urlconvert ¶ added in v5.9.2
func Urlconvert(str string) interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.