mirror of
https://github.com/kataras/iris.git
synced 2025-12-24 05:17:03 +00:00
simplify some examples
This commit is contained in:
@@ -57,7 +57,7 @@ func h(ctx iris.Context) {
|
||||
// OR:
|
||||
user := ctx.User()
|
||||
username, _ := user.GetUsername()
|
||||
password, _ := user.GetPassword
|
||||
password, _ := user.GetPassword()
|
||||
ctx.Writef("%s %s:%s", ctx.Path(), username, password)
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ go 1.15
|
||||
|
||||
require (
|
||||
github.com/google/uuid v1.1.2
|
||||
github.com/kataras/iris/v12 v12.2.0-alpha.0.20201031040657-23d4c411cadb
|
||||
github.com/kataras/iris/v12 v12.2.0-alpha.0.20201106220849-7a19cfb2112f
|
||||
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user