Use template.Must for HTMLReport
cinar opened this issue · 0 comments
cinar commented
Currently HTMLReport does template.New("report").Parse(...)
. Checking the error here does not make much sense, given that the templates are provided through the library and not by the user. It makes more sense to use tempalte.Must(...)
here so that the errors can be checked while building the library but not by the application.