Cosmetic changes:

- Deprecating GetCookie()
This commit is contained in:
Manu Mtz.-Almeida
2016-01-26 18:36:37 +01:00
parent 7afb3238a3
commit 4c639a5049
2 changed files with 30 additions and 26 deletions
+7
View File
@@ -3,3 +3,10 @@
// license that can be found in the LICENSE file.
package gin
import "log"
func (c *Context) GetCookie(name string) (string, error) {
log.Println("GetCookie() method is deprecated. Use Cookie() instead.")
return c.Cookie(name)
}