internal/cmd/docgen: use "missingkey=error" (#287)

This commit is contained in:
Michael McLoughlin
2022-05-08 17:23:31 -07:00
committed by GitHub
parent 62c71109a4
commit bdaad2bb98

View File

@@ -42,6 +42,8 @@ func mainerr() (err error) {
// Initialize template. // Initialize template.
t := template.New("doc") t := template.New("doc")
t.Option("missingkey=error")
t.Funcs(template.FuncMap{ t.Funcs(template.FuncMap{
"include": include, "include": include,
"snippet": snippet, "snippet": snippet,