code: func newAccessSet(accessItems ...auth.Access) accessSet {
  	accessSet := make(accessSet, len(accessItems))
  
  	for _, access := range accessItems {
  		resource := auth.Resource{
  			Type: access.Type,
  			Name: access.Name,
  		}
  
  		set, exists := accessSet[resource]
  		if !exists {
  			set = newActionSet()
  			accessSet[resource] = set
  		}
  
  		set.add(access.Action)
  	}
  
  	return accessSet
  }
docs: // newAccessSet constructs an accessSet from
  // a variable number of auth.Access items.