Gin v1.3.0 Release Notes
Release Date: 2018-08-14 // over 5 years ago-
๐ CHANGELOG
Gin 1.3.0
- [NEW] Add
func (*Context) QueryMap
,func (*Context) GetQueryMap
,func (*Context) PostFormMap
andfunc (*Context) GetPostFormMap
to supporttype map[string]string
as query string or form parameters, see #1383 - ๐ [NEW] Add
func (*Context) AsciiJSON
, see #1358 - ๐ [NEW] Add
Pusher()
intype ResponseWriter
for supporting http2 push, see #1273 - ๐ [NEW] Add
func (*Context) DataFromReader
for serving dynamic data, see #1304 - ๐ [NEW] Add
func (*Context) ShouldBindBodyWith
allowing to call binding multiple times, see #1341 - ๐ [NEW] Support pointers in form binding, see #1336
- ๐ [NEW] Add
func (*Context) JSONP
, see #1333 - ๐ [NEW] Support default value in form binding, see #1138
- ๐ [NEW] Expose validator engine in
type StructValidator
, see #1277 - [NEW] Add
func (*Context) ShouldBind
,func (*Context) ShouldBindQuery
andfunc (*Context) ShouldBindJSON
, see #1047 - ๐ [NEW] Add support for
time.Time
location in form binding, see #1117 - ๐ [NEW] Add
func (*Context) BindQuery
, see #1029 - ๐ [NEW] Make jsonite optional with build tags, see #1026
- ๐ [NEW] Show query string in logger, see #999
- ๐ [NEW] Add
func (*Context) SecureJSON
, see #987 and #993 - [DEPRECATE]
func (*Context) GetCookie
forfunc (*Context) Cookie
- ๐ [FIX] Don't display color tags if
func DisableConsoleColor
called, see #1072 - ๐ [FIX] Gin Mode
""
when callingfunc Mode
now returnsconst DebugMode
, see #1250 - ๐ [FIX]
Flush()
now doesn't overwriteresponseWriter
status code, see #1460
- [NEW] Add