Gin 1.3.0 がリリースされました
変更履歴
- [NEW]
type map[string]stringをクエリ文字列またはフォームパラメータとしてサポートするため、func (*Context) QueryMap、func (*Context) GetQueryMap、func (*Context) PostFormMap、func (*Context) GetPostFormMapを追加。#1383を参照 - [NEW]
func (*Context) AsciiJSONを追加。#1358を参照 - [NEW] http2 pushをサポートするため
type ResponseWriterにPusher()を追加。#1273を参照 - [NEW] 動的データの提供のため
func (*Context) DataFromReaderを追加。#1304を参照 - [NEW] バインディングの複数回呼び出しを可能にする
func (*Context) ShouldBindBodyWithを追加。#1341を参照 - [NEW] フォームバインディングでのポインタサポート。#1336を参照
- [NEW]
func (*Context) JSONPを追加。#1333を参照 - [NEW] フォームバインディングでのデフォルト値サポート。#1138を参照
- [NEW]
type StructValidatorでバリデータエンジンを公開。#1277を参照 - [NEW]
func (*Context) ShouldBind、func (*Context) ShouldBindQuery、func (*Context) ShouldBindJSONを追加。#1047を参照 - [NEW] フォームバインディングで
time.Timeのロケーションサポートを追加。#1117を参照 - [NEW]
func (*Context) BindQueryを追加。#1029を参照 - [NEW] ビルドタグでjsoniteをオプションに。#1026を参照
- [NEW] ロガーにクエリ文字列を表示。#999を参照
- [NEW]
func (*Context) SecureJSONを追加。#987および#993を参照 - [DEPRECATE]
func (*Context) GetCookieはfunc (*Context) Cookieに非推奨化 - [FIX]
func DisableConsoleColorが呼ばれた場合、カラータグを表示しないように修正。#1072を参照 - [FIX]
func Modeを呼び出した際のGin Mode""がconst DebugModeを返すように修正。#1250を参照 - [FIX]
Flush()がresponseWriterのステータスコードを上書きしないように修正。#1460を参照