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

@@ -45,7 +45,7 @@ func (h *CategoryHandler) GetByID(ctx iris.Context) {
type (
List struct {
Data interface{} `json:"data"`
Data any `json:"data"`
Order string `json:"order"`
Next Range `json:"next,omitempty"`
Prev Range `json:"prev,omitempty"`
@@ -136,7 +136,7 @@ func (h *CategoryHandler) Update(ctx iris.Context) {
func (h *CategoryHandler) PartialUpdate(ctx iris.Context) {
id := ctx.Params().GetInt64Default("id", 0)
var attrs map[string]interface{}
var attrs map[string]any
if err := ctx.ReadJSON(&attrs); err != nil {
return
}

View File

@@ -8,7 +8,7 @@ import (
const debug = true
func debugf(format string, args ...interface{}) {
func debugf(format string, args ...any) {
if !debug {
return
}

View File

@@ -16,7 +16,7 @@ type Error struct {
Timestamp int64 `json:"timestamp"`
}
func newError(statusCode int, method, path, format string, args ...interface{}) Error {
func newError(statusCode int, method, path, format string, args ...any) Error {
msg := format
if len(args) > 0 {
// why we check for that? If the original error message came from our database

View File

@@ -127,7 +127,7 @@ func (h *ProductHandler) Update(ctx iris.Context) {
func (h *ProductHandler) PartialUpdate(ctx iris.Context) {
id := ctx.Params().GetInt64Default("id", 0)
var attrs map[string]interface{}
var attrs map[string]any
if err := ctx.ReadJSON(&attrs); err != nil {
return
}