mirror of
https://github.com/kataras/iris.git
synced 2025-12-24 05:17:03 +00:00
replace ioutil with io package and other minor improvements
This commit is contained in:
@@ -166,10 +166,12 @@ func (u *SimpleUser) GetField(key string) (interface{}, error) {
|
||||
|
||||
// UserMap can be used to convert a common map[string]interface{} to a User.
|
||||
// Usage:
|
||||
// user := map[string]interface{}{
|
||||
// "username": "kataras",
|
||||
// "age" : 27,
|
||||
// }
|
||||
//
|
||||
// user := map[string]interface{}{
|
||||
// "username": "kataras",
|
||||
// "age" : 27,
|
||||
// }
|
||||
//
|
||||
// ctx.SetUser(user)
|
||||
// OR
|
||||
// user := UserStruct{....}
|
||||
|
||||
Reference in New Issue
Block a user