From 19f77bdd4ce66f2c79dd56cec3baf8de206f1115 Mon Sep 17 00:00:00 2001 From: ishanray Date: Sat, 5 Mar 2016 02:27:19 +0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a111d2..f47e020 100644 --- a/README.md +++ b/README.md @@ -583,7 +583,7 @@ func main() { // /admin/secrets endpoint // hit "localhost:8080/admin/secrets authorized.GET("/secrets", func(c *gin.Context) { - // get user, it was setted by the BasicAuth middleware + // get user, it was set by the BasicAuth middleware user := c.MustGet(gin.AuthUserKey).(string) if secret, ok := secrets[user]; ok { c.JSON(http.StatusOK, gin.H{"user": user, "secret": secret})