code: func NewRuleFilter(action bool, ruleIDs ...string) RuleFilter {
  	rulelist := make(map[string]bool)
  	for _, rule := range ruleIDs {
  		rulelist[rule] = true
  	}
  	return func(rule string) bool {
  		if _, found := rulelist[rule]; found {
  			return action
  		}
  		return !action
  	}
  }
docs: // NewRuleFilter is a closure that will include/exclude the rule ID's based on
  // the supplied boolean value.