code: func CompileIgnoreLines(lines ...string) (*GitIgnore, error) {
  	gi := &GitIgnore{}
  	for _, line := range lines {
  		pattern, negatePattern := getPatternFromLine(line)
  		if pattern != nil {
  			ip := &ignorePattern{pattern, negatePattern}
  			gi.patterns = append(gi.patterns, ip)
  		}
  	}
  	return gi, nil
  }
docs: // Accepts a variadic set of strings, and returns a GitIgnore object which
  // converts and appends the lines in the input to regexp.Regexp patterns
  // held within the GitIgnore objects "patterns" field