Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuiltInFuncs = template.FuncMap{ "upper": func(s string) string { return strings.ToUpper(s) }, "lower": func(s string) string { return strings.ToLower(s) }, "replace": strings.ReplaceAll, "trimPrefix": func(prefix, s string) string { return strings.TrimPrefix(s, prefix) }, "trimSuffix": func(suffix, s string) string { return strings.TrimSuffix(s, suffix) }, }
We add a limited set of useful funcs, mostly string handling, to the Go built-ins.
Functions ¶
func MustSprintt ¶ added in v0.6.0
MustSprintt is like Sprintt but panics on error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.