From fca05115aba6c2d5e21b61912fab6a74e794caee Mon Sep 17 00:00:00 2001 From: Alexander Nyquist Date: Thu, 3 Jul 2014 09:11:44 +0200 Subject: [PATCH] Fixed bug in HTML template example. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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