2016-04-01 14:20:03 +00:00
|
|
|
// © 2013 the CatBase Authors under the WTFPL. See AUTHORS for the list of authors.
|
|
|
|
|
|
|
|
package user
|
|
|
|
|
|
|
|
// User type stores user history. This is a vehicle that will follow the user for the active
|
|
|
|
// session
|
|
|
|
type User struct {
|
|
|
|
// Current nickname known
|
2017-01-05 14:48:57 +00:00
|
|
|
ID string
|
2016-04-21 15:19:38 +00:00
|
|
|
Name string
|
2016-04-01 14:20:03 +00:00
|
|
|
Admin bool
|
2020-05-08 14:31:27 +00:00
|
|
|
Icon string
|
2016-04-21 15:19:38 +00:00
|
|
|
}
|
2016-04-01 14:20:03 +00:00
|
|
|
|
2016-04-21 15:19:38 +00:00
|
|
|
func New(name string) User {
|
|
|
|
return User{
|
|
|
|
Name: name,
|
|
|
|
}
|
2016-04-01 14:20:03 +00:00
|
|
|
}
|