code: func Parse(content []byte) (*RuleGroups, []error) {
  	var groups RuleGroups
  	if err := yaml.UnmarshalStrict(content, &groups); err != nil {
  		return nil, []error{err}
  	}
  	return &groups, groups.Validate()
  }
docs: // Parse parses and validates a set of rules.