diff --git a/README.md b/README.md index c2a5f117..041b49c5 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,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