From 8e7b8174602836e098f4290a6bc9bf501f6f853a Mon Sep 17 00:00:00 2001 From: Alexander Nyquist Date: Thu, 3 Jul 2014 17:32:47 +0200 Subject: [PATCH] Using template.Must to fix multiple return issue. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c2a5f11..041b49c 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