1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-24 20:35:59 +00:00

minor improvements

This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-11-15 15:29:30 +02:00
parent e8dc935f16
commit 48bb9c9c11
5 changed files with 90 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ The codebase for Dependency Injection, Internationalization and localization and
## Fixes and Improvements
- `Context.JSON` respects any object implements the `easyjson.Marshaler` interface and renders the result using the [easyjon](https://github.com/mailru/easyjson)'s writer.
- minor: `Context` structure implements the standard go Context interface now (includes: Deadline, Done, Err and Value methods). Handlers can now just pass the `ctx iris.Context` as a shortcut of `ctx.Request().Context()` when needed.
- New [x/jsonx](x/jsonx) sub-package for JSON type helpers.
- New [x/mathx](x/mathx) sub-package for math related functions.