refactor(deprecated): remove getcookie
This commit is contained in:
parent
89f0acc2f8
commit
114b71868a
@ -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) {
|
"github.com/gin-gonic/gin/binding"
|
||||||
log.Println("GetCookie() method is deprecated. Use Cookie() instead.")
|
)
|
||||||
return c.Cookie(name)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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.
|
||||||
|
Loading…
Reference in New Issue
Block a user