13 lines
351 B
Go
Raw Normal View History

2014-10-28 16:07:33 -07:00
// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package gin
2017-01-20 13:21:18 -06:00
import "log"
2014-10-28 16:07:33 -07:00
2017-01-20 13:21:18 -06:00
func (c *Context) GetCookie(name string) (string, error) {
log.Println("GetCookie() method is deprecated. Use Cookie() instead.")
return c.Cookie(name)
2014-10-28 16:07:33 -07:00
}