1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-07 12:07:28 +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

@@ -10,7 +10,7 @@
// See here: https://godoc.org/go.mongodb.org/mongo-driver/bson/primitive#ObjectID.MarshalJSON.
//
// To register a converter import the github.com/iris-contrib/schema and call
// schema.Query.RegisterConverter(value interface{}, converterFunc Converter).
// schema.Query.RegisterConverter(value any, converterFunc Converter).
//
// The Converter is just a type of func(string) reflect.Value.
//

View File

@@ -44,7 +44,7 @@ var DefaultBodyDecoder = myBodyDecoder{}
// we will use the simplest `context#UnmarshalerFunc` to pass just the yaml.Unmarshal.
//
// Can be used as: ctx.UnmarshalBody(&c, DefaultBodyDecoder)
func (r *myBodyDecoder) Unmarshal(data []byte, outPtr interface{}) error {
func (r *myBodyDecoder) Unmarshal(data []byte, outPtr any) error {
return yaml.Unmarshal(data, outPtr)
}
*/

View File

@@ -42,7 +42,7 @@ func logAllBody(ctx iris.Context) {
}
func logJSON(ctx iris.Context) {
var p interface{}
var p any
if err := ctx.ReadJSON(&p); err == nil {
ctx.Application().Logger().Infof("logJSON: %#+v", p)
}