v1.3.0
版本发布时间: 2018-08-14 16:59:07
gin-gonic/gin最新发布版本:v1.10.0(2024-05-07 11:48:51)
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