internal/cmd/docgen: use "missingkey=error" (#287)
This commit is contained in:
committed by
GitHub
parent
62c71109a4
commit
bdaad2bb98
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user