package models type Rights string const ( Read Rights = "R" Write Rights = "W" ReadWrite Rights = "RW" ) func (r *Rights) GetRights() Rights { if *r == "" { return ReadWrite } return *r }