mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 12:57:05 +00:00
update dependencies
This commit is contained in:
@@ -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{}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user