diff --git a/README.md b/README.md index b488f159..22f7b032 100644 --- a/README.md +++ b/README.md @@ -1799,6 +1799,7 @@ func main() { func loadTemplate() (*template.Template, error) { t := template.New("") for name, file := range Assets.Files { + defer file.Close() if file.IsDir() || !strings.HasSuffix(name, ".tmpl") { continue }