1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 04:47:02 +00:00

update dependencies

This commit is contained in:
Gerasimos (Makis) Maropoulos
2025-08-15 23:29:20 +03:00
parent de4f462198
commit a8a3afea22
186 changed files with 694 additions and 689 deletions

View File

@@ -1,6 +1,6 @@
module github.com/kataras/iris/_examples/response-writer/json-third-party
go 1.24.3
go 1.25
require (
github.com/bytedance/sonic v1.13.2

View File

@@ -16,7 +16,7 @@ func applyIrisGlobalPatches() {
// Apply global modifications to the context REST writers
// without modifications to your web server's handlers code.
iris.Patches().Context().Writers().JSON(func(ctx iris.Context, v interface{}, options *iris.JSON) error {
iris.Patches().Context().Writers().JSON(func(ctx iris.Context, v any, options *iris.JSON) error {
enc := json.NewEncoder(ctx.ResponseWriter())
enc.SetEscapeHTML(!options.UnescapeHTML)
enc.SetIndent("", options.Indent)