From 5092886e997e42a4aa50e36f3d8d14defb2db2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E6=BA=AA=E7=AC=94=E8=B0=88?= Date: Thu, 21 Aug 2014 21:32:32 +0800 Subject: [PATCH] Update README.md Fix a typo in Redirects section. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f150f433..c97164d4 100644 --- a/README.md +++ b/README.md @@ -324,12 +324,13 @@ func main() { Issuing a HTTP redirect is easy: -```r.GET("/test", func(c *gin.Context) { +```go +r.GET("/test", func(c *gin.Context) { c.Redirect(301, "http://www.google.com/") }) - -Both internal and external locations are supported. ``` +Both internal and external locations are supported. + #### Custom Middlewares