1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

update examples dependencies, see previous commit as well

This commit is contained in:
Gerasimos (Makis) Maropoulos
2025-03-30 01:07:36 +02:00
parent 630c67ea6d
commit bcf88f9f2f
64 changed files with 1642 additions and 1691 deletions

View File

@@ -2,6 +2,7 @@ package main // See https://github.com/kataras/iris/issues/1601
import (
"bufio"
"fmt"
"time"
"github.com/kataras/iris/v12"
@@ -149,7 +150,7 @@ func htmlResponse(ctx iris.Context) {
func adminHandler(ctx iris.Context) {
username, password, _ := ctx.Request().BasicAuth()
// of course you don't want that in production:
ctx.HTML("<h2>Username: %s</h2><h3>Password: %s</h3>", username, password)
ctx.HTML(fmt.Sprintf("<h2>Username: %s</h2><h3>Password: %s</h3>", username, password))
}
func sessionHandler(ctx iris.Context) {