1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 04:21:57 +00:00

update code for go version 1.24

This commit is contained in:
Gerasimos (Makis) Maropoulos
2025-03-30 00:41:54 +02:00
parent e5e5d6f68f
commit 630c67ea6d
90 changed files with 337 additions and 167 deletions

View File

@@ -220,7 +220,7 @@ func Validation[T any](validators ...ContextRequestFunc[T]) context.Handler {
return nil
}
validator := joinContextRequestFuncs[T](validators)
validator := joinContextRequestFuncs(validators)
return func(ctx *context.Context) {
ctx.Values().Set(contextRequestHandlerFuncKey, validator)
@@ -322,7 +322,7 @@ func Intercept[T, R any](responseHandlers ...ContextResponseFunc[T, R]) context.
return nil
}
responseHandler := joinContextResponseFuncs[T, R](responseHandlers)
responseHandler := joinContextResponseFuncs(responseHandlers)
return func(ctx *context.Context) {
ctx.Values().Set(contextResponseHandlerFuncKey, responseHandler)