Skip to content

Commit

Permalink
fix template invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-tbd committed Oct 13, 2023
1 parent 812776c commit fb6c9bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/web5-spec-test/reports.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (r Report) Text() string {
return b.String()
}

var mdTemplate = template.Must(template.New("").ParseFS(reportTemplate, "*.md"))
var mdTemplate = template.Must(template.New("").ParseFS(reportTemplate, "report-template.md"))

func (r Report) WriteMarkdown(filename string) error {
f, err := os.Create(filename)
Expand All @@ -61,7 +61,7 @@ func (r Report) WriteMarkdown(filename string) error {
}
defer f.Close()

err = mdTemplate.Execute(f, r)
err = mdTemplate.ExecuteTemplate(f, "report-template.md", r)
if err != nil {
return err
}
Expand Down

0 comments on commit fb6c9bf

Please sign in to comment.