deprecated.go 351 B

123456789101112
  1. // Copyright 2014 Manu Martinez-Almeida. All rights reserved.
  2. // Use of this source code is governed by a MIT style
  3. // license that can be found in the LICENSE file.
  4. package gin
  5. import "log"
  6. func (c *Context) GetCookie(name string) (string, error) {
  7. log.Println("GetCookie() method is deprecated. Use Cookie() instead.")
  8. return c.Cookie(name)
  9. }