code: func (u *User) GetPermissions() map[string]bool {
  	if u == nil || u.Permissions == nil {
  		return map[string]bool{}
  	}
  	return *u.Permissions
  }
docs: // GetPermissions returns the Permissions field if it's non-nil, zero value otherwise.