code: func ParsePattern(p string, domain []string) Pattern {
  	return &pattern{
  		domain:  domain,
  		pattern: strings.Split(p, patternDirSep),
  	}
  }
docs: // ParsePattern parses a gitattributes pattern string into the Pattern
  // structure.