mirror of
https://github.com/kataras/iris.git
synced 2025-12-29 07:47:22 +00:00
update dependencies
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module app
|
||||
|
||||
go 1.24.3
|
||||
go 1.25
|
||||
|
||||
require (
|
||||
github.com/golang/protobuf v1.5.3
|
||||
|
||||
@@ -145,7 +145,7 @@ func file_hello_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_hello_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_hello_proto_goTypes = []interface{}{
|
||||
var file_hello_proto_goTypes = []any{
|
||||
(*HelloRequest)(nil), // 0: protos.HelloRequest
|
||||
(*HelloReply)(nil), // 1: protos.HelloReply
|
||||
}
|
||||
@@ -163,7 +163,7 @@ func file_hello_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_hello_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_hello_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*HelloRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -175,7 +175,7 @@ func file_hello_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_hello_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_hello_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*HelloReply); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
||||
Reference in New Issue
Block a user