Skip to content

Commit

Permalink
use "missingkey=error"
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed May 9, 2022
1 parent 62c7110 commit 2efee0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/cmd/docgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2efee0d

Please sign in to comment.