Gin 1.3.0 is released
CHANGELOG
- [NEW] Add
func (*Context) QueryMap
, func (*Context) GetQueryMap
, func (*Context) PostFormMap
and func (*Context) GetPostFormMap
to support type map[string]string
as query string or form parameters, see #1383
- [NEW] Add
func (*Context) AsciiJSON
, see #1358
- [NEW] Add
Pusher()
in type 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
and func (*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
for func (*Context) Cookie
- [FIX] Don’t display color tags if
func DisableConsoleColor
called, see #1072
- [FIX] Gin Mode
""
when calling func Mode
now returns const DebugMode
, see #1250
- [FIX]
Flush()
now doesn’t overwrite responseWriter
status code, see #1460