Skip to content
Myr

Update README.md

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix a typo in Redirects section.

authored by 梦溪笔谈 · committed by 梦溪笔谈 · parent 2d94e27 · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:README.md+4 added-3 removed
322 unmodified lines
323#### Redirects324325Issuing a HTTP redirect is easy:326327```go327```r.GET("/test", func(c *gin.Context) {328r.GET("/test", func(c *gin.Context) {329 c.Redirect(301, "http://www.google.com/")330})330331Both internal and external locations are supported.331```332Both internal and external locations are supported.333334335#### Custom Middlewares336337```go338func Logger() gin.HandlerFunc {
134 unmodified lines