From bdaad2bb98fd7e44964b0b8385effdd97e34c65c Mon Sep 17 00:00:00 2001 From: Michael McLoughlin Date: Sun, 8 May 2022 17:23:31 -0700 Subject: [PATCH] internal/cmd/docgen: use "missingkey=error" (#287) --- internal/cmd/docgen/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/cmd/docgen/main.go b/internal/cmd/docgen/main.go index 9d79574e..33e78e30 100644 --- a/internal/cmd/docgen/main.go +++ b/internal/cmd/docgen/main.go @@ -42,6 +42,8 @@ func mainerr() (err error) { // Initialize template. t := template.New("doc") + t.Option("missingkey=error") + t.Funcs(template.FuncMap{ "include": include, "snippet": snippet,