(userId int)
| 428 | } |
| 429 | |
| 430 | func LoadUserById(userId int) (*UserRecord, error) { |
| 431 | |
| 432 | idx := GetUserIndex() |
| 433 | username, found := idx.FindByUserId(userId) |
| 434 | if !found { |
| 435 | return nil, errors.New("user doesn't exist") |
| 436 | } |
| 437 | |
| 438 | return LoadUser(username) |
| 439 | } |
| 440 | |
| 441 | func LoadUser(username string, skipValidation ...bool) (*UserRecord, error) { |
| 442 |
no test coverage detected