Переглянути джерело

refactor(deprecated): remove getcookie

Javier Provecho Fernandez 9 роки тому
батько
коміт
114b71868a
1 змінених файлів з 2 додано та 6 видалено
  1. 2 6
      deprecated.go

+ 2 - 6
deprecated.go

@@ -5,14 +5,10 @@
 package gin
 package gin
 
 
 import (
 import (
-	"github.com/gin-gonic/gin/binding"
 	"log"
 	"log"
-)
 
 
-func (c *Context) GetCookie(name string) (string, error) {
-	log.Println("GetCookie() method is deprecated. Use Cookie() instead.")
-	return c.Cookie(name)
-}
+	"github.com/gin-gonic/gin/binding"
+)
 
 
 // BindWith binds the passed struct pointer using the specified binding engine.
 // BindWith binds the passed struct pointer using the specified binding engine.
 // See the binding package.
 // See the binding package.