refactor(deprecated): remove getcookie

This commit is contained in:
Javier Provecho Fernandez 2017-07-02 16:59:21 +02:00
parent 89f0acc2f8
commit 114b71868a

View File

@ -5,14 +5,10 @@
package gin
import (
"github.com/gin-gonic/gin/binding"
"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.
// See the binding package.