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

@@ -30,8 +30,8 @@ func main() {
// * bool, for booleans
// * float64, for numbers
// * string, for strings
// * []interface{}, for arrays
// * map[string]interface{}, for objects.
// * []any, for arrays
// * map[string]any, for objects.
// If you want to save the data per go-specific types
// you should change the DefaultTranscoder to the GobTranscoder one:
// sessions.DefaultTranscoder = sessions.GobTranscoder{}

View File

@@ -1,6 +1,6 @@
module app
go 1.24.3
go 1.25
require github.com/kataras/iris/v12 v12.2.11-0.20250430051100-af9c8213980c

View File

@@ -27,7 +27,7 @@ func NewApp(sess *sessions.Sessions) *iris.Application {
}
ctx.HTML("<ul>")
session.Visit(func(key string, value interface{}) {
session.Visit(func(key string, value any) {
ctx.HTML(fmt.Sprintf("<li> %s = %v </li>", key, value))
})
@@ -96,7 +96,7 @@ func NewApp(sess *sessions.Sessions) *iris.Application {
session := sessions.Get(ctx)
key := ctx.Params().Get("key")
var value interface{}
var value any
switch ctx.Params().Get("type") {
case "int":