loginToTemplate/user.go
2022-03-01 11:55:49 -05:00

21 lines
313 B
Go

package main
type User struct {
Username string
Key string
IpAddress string
IsAdmin bool
}
func (u *User) UpdateUserKey(key string) {
u.Key = key
}
func (u *User) UpdateUserIp(ipAddress string) {
u.IpAddress = ipAddress
}
func (u *User) UpdateAdminStatus(isAdmin bool) {
u.IsAdmin = isAdmin
}