code: func NewRuleSet(rules ...*Rule) RuleSet {
  	rs := make(RuleSet, 0, len(rules))
  	for _, rule := range rules {
  		rs.Add(rule)
  	}
  	return rs
  }
docs: // NewRuleSet returns a new RuleSet containing the given rules.