From bbe668740d1d0d07e117e840a4b704e06e719da7 Mon Sep 17 00:00:00 2001 From: Stefano Vettorazzi Date: Sun, 2 Oct 2016 15:00:12 -0300 Subject: [PATCH] [docs] Fix syntax typo (#48) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 02e4f42..9bcf3f8 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ func main() { func ShowSignupForm(w http.ResponseWriter, r *http.Request) { // signup_form.tmpl just needs a {{ .csrfField }} template tag for // csrf.TemplateField to inject the CSRF token into. Easy! - t.ExecuteTemplate(w, "signup_form.tmpl", map[string]interface{ + t.ExecuteTemplate(w, "signup_form.tmpl", map[string]interface{}{ csrf.TemplateTag: csrf.TemplateField(r), }) // We could also retrieve the token directly from csrf.Token(r) and