mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 12:07:28 +00:00
update dependencies
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
*/
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user