1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 18:37:05 +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

@@ -12,7 +12,7 @@ func main() {
// Hijack each output value of a method (can be used per-party too).
app.ConfigureContainer().
UseResultHandler(func(next iris.ResultHandler) iris.ResultHandler {
return func(ctx iris.Context, v interface{}) error {
return func(ctx iris.Context, v any) error {
switch val := v.(type) {
case errorResponse:
return next(ctx, errorView(val))
@@ -48,7 +48,7 @@ type user struct {
ID uint64 `json:"id"`
}
func (c *controller) GetBy(userid uint64) interface{} {
func (c *controller) GetBy(userid uint64) any {
if userid != 1 {
return errorResponse{
Code: iris.StatusNotFound,