浏览代码

Merge pull request #5 from SkuliOskarsson/patch-1

Fixed some text in the readme
Manu Mtz.-Almeida 11 年之前
父节点
当前提交
90ae97f970
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -208,8 +208,8 @@ func main() {
     r := gin.Default()
     r.LoadHTMLTemplates("templates/*")
     r.GET("index", func(c *gin.Context) {
-        obj := gin.h{"title": "Main website"}
-        c.HTML(200, "templates/index.tmpl", obj)
+        obj := gin.H{"title": "Main website"}
+        c.HTML(200, "index.tmpl", obj)
     })
 }
 ```