Explorar o código

Merge branch 'master' of github.com:gin-gonic/gin

Manu Mtz-Almeida %!s(int64=11) %!d(string=hai) anos
pai
achega
f973263072
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -21,7 +21,7 @@ Yes, Gin is an internal project of [my](https://github.com/manucorporat) upcomin
 - Improve JSON/XML validation using bindings
 - Improve JSON/XML validation using bindings
 - Improve XML support
 - Improve XML support
 - Improve documentation
 - Improve documentation
-- Add more cool middlewares, for example redis catching (this also helps developers to understand the framework)
+- Add more cool middlewares, for example redis caching (this also helps developers to understand the framework)
 - Continuous integration
 - Continuous integration
 
 
 
 
@@ -294,7 +294,7 @@ func main() {
     r.Use(Logger())
     r.Use(Logger())
     
     
     r.GET("/test", func(c *gin.Context){
     r.GET("/test", func(c *gin.Context){
-        example := r.Get("example").(string)
+        example := c.Get("example").(string)
         
         
         // it would print: "12345"
         // it would print: "12345"
         log.Println(example)
         log.Println(example)