diff --git a/README.md b/README.md index c2a5f117..27c5cf9f 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,11 @@ You can also use your own html template render import "html/template" func main() { r := gin.Default() - html := template.ParseFiles("file1", "file2") + html, err := template.ParseFiles("file1", "file2") + if err != nil { + fmt.Printf("Could not parse templates: %v\n", err) + return + } r.HTMLTemplates = html // Listen and server on 0.0.0.0:8080