code: func (ps *Permissions) Can(action string, host string, port int) bool {
  	for _, p := range *ps {
  		if p.Actions.Contains(action) && p.Hosts.Contains(host) && p.Ports.Contains(port) {
  			return true
  		}
  	}
  
  	return false
  }
docs: // Can tests whether the given action and host:port is allowed by this Permissions.