code: func getParseFunc(log []byte) (parseFunc, error) {
  	for _, p := range parseFuncs {
  		if err := p(log, &logMessage{}); err == nil {
  			return p, nil
  		}
  	}
  	return nil, fmt.Errorf("unsupported log format: %q", log)
  }
docs: // getParseFunc returns proper parse function based on the sample log line passed in.