summaryrefslogtreecommitdiffstats
path: root/tpl/internal
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-28 08:52:15 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-28 08:59:57 +0100
commit12d00d288cec5018949be06010df7c11d8ff06f0 (patch)
treefba0437e3f411439209c87e48d7eebe028a5c8f6 /tpl/internal
parent260ff1374de71de507ffa435b8e0950aa3cb28a8 (diff)
docs: Regenerate docs helper
Diffstat (limited to 'tpl/internal')
-rw-r--r--tpl/internal/templatefuncsRegistry.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/tpl/internal/templatefuncsRegistry.go b/tpl/internal/templatefuncsRegistry.go
index df300a5bb..fe5dfe7ca 100644
--- a/tpl/internal/templatefuncsRegistry.go
+++ b/tpl/internal/templatefuncsRegistry.go
@@ -163,6 +163,10 @@ func (namespaces TemplateFuncsNamespaces) MarshalJSON() ([]byte, error) {
return buf.Bytes(), nil
}
+var ignoreFuncs = map[string]bool{
+ "Reset": true,
+}
+
func (t *TemplateFuncsNamespace) toJSON() ([]byte, error) {
var buf bytes.Buffer
@@ -179,6 +183,9 @@ func (t *TemplateFuncsNamespace) toJSON() ([]byte, error) {
ctxType := reflect.TypeOf(ctx)
for i := 0; i < ctxType.NumMethod(); i++ {
method := ctxType.Method(i)
+ if ignoreFuncs[method.Name] {
+ continue
+ }
f := goDocFunc{
Name: method.Name,
}