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 }