diff --git a/README.md b/README.md index d9249897..53efb203 100644 --- a/README.md +++ b/README.md @@ -260,7 +260,7 @@ You can also use your own html template render import "html/template" func main() { r := gin.Default() - html := template.ParseFiles("file1", "file2") + html := template.Must(template.ParseFiles("file1", "file2")) r.HTMLTemplates = html // Listen and server on 0.0.0.0:8080