mirror of
https://github.com/kataras/iris.git
synced 2026-01-16 00:16:00 +00:00
update dependencies
This commit is contained in:
@@ -77,7 +77,7 @@ func (fi bindataFileInfo) IsDir() bool {
|
||||
}
|
||||
|
||||
// Sys return file is sys mode
|
||||
func (fi bindataFileInfo) Sys() interface{} {
|
||||
func (fi bindataFileInfo) Sys() any {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ func main() {
|
||||
Name string
|
||||
Age int
|
||||
Items []string
|
||||
Map map[string]interface{}
|
||||
Map map[string]any
|
||||
Nested book
|
||||
}{
|
||||
"Example Name",
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
// Hello renders our ../templates/hello.qtpl file using the compiled ../templates/hello.qtpl.go file.
|
||||
func Hello(ctx iris.Context) {
|
||||
// vars := make(map[string]interface{})
|
||||
// vars := make(map[string]any)
|
||||
// vars["message"] = "Hello World!"
|
||||
// vars["name"] = ctx.Params().Get("name")
|
||||
// [...]
|
||||
|
||||
@@ -2,7 +2,7 @@ Hello template, implements the Partial's methods.
|
||||
|
||||
{% code
|
||||
type Hello struct {
|
||||
Vars map[string]interface{}
|
||||
Vars map[string]any
|
||||
}
|
||||
%}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ var (
|
||||
//line hello.qtpl:4
|
||||
|
||||
type Hello struct {
|
||||
Vars map[string]interface{}
|
||||
Vars map[string]any
|
||||
}
|
||||
|
||||
//line hello.qtpl:9
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module github.com/kataras/iris/v12/_examples/view/templ
|
||||
|
||||
go 1.24.3
|
||||
go 1.25
|
||||
|
||||
require (
|
||||
github.com/a-h/templ v0.3.887
|
||||
|
||||
@@ -78,7 +78,7 @@ func (fi bindataFileInfo) IsDir() bool {
|
||||
}
|
||||
|
||||
// Sys return file is sys mode
|
||||
func (fi bindataFileInfo) Sys() interface{} {
|
||||
func (fi bindataFileInfo) Sys() any {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ func hi(ctx iris.Context) {
|
||||
// ctx.ViewData("name", "iris")
|
||||
// ctx.ViewData("serverStartTime", startTime)
|
||||
// or if you set all view data in the same handler you can use the
|
||||
// iris.Map/pongo2.Context/map[string]interface{}, look below:
|
||||
// iris.Map/pongo2.Context/map[string]any, look below:
|
||||
|
||||
if err := ctx.View("hi.html", iris.Map{
|
||||
"title": "Hi Page",
|
||||
|
||||
@@ -77,7 +77,7 @@ func (fi bindataFileInfo) IsDir() bool {
|
||||
}
|
||||
|
||||
// Sys return file is sys mode
|
||||
func (fi bindataFileInfo) Sys() interface{} {
|
||||
func (fi bindataFileInfo) Sys() any {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (fi bindataFileInfo) IsDir() bool {
|
||||
}
|
||||
|
||||
// Sys return file is sys mode
|
||||
func (fi bindataFileInfo) Sys() interface{} {
|
||||
func (fi bindataFileInfo) Sys() any {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user