From eac276d86b9f895ae6064d17eef82248dd5ac606 Mon Sep 17 00:00:00 2001 From: dfreire Date: Fri, 23 Oct 2015 23:10:17 +0100 Subject: [PATCH] Fixed documentation example for group with basic auth. --- website/content/guide/middleware.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/content/guide/middleware.md b/website/content/guide/middleware.md index 4cb8b450..64fe104a 100644 --- a/website/content/guide/middleware.md +++ b/website/content/guide/middleware.md @@ -33,8 +33,8 @@ BasicAuth middleware provides an HTTP basic authentication. *Example* ```go -e.Group("/admin") -e.Use(mw.BasicAuth(func(usr, pwd string) bool { +g := e.Group("/admin") +g.Use(mw.BasicAuth(func(usr, pwd string) bool { if usr == "joe" && pwd == "secret" { return true }