code: func (d Decoder) FormatFromContentString(data string) Format {
  	csvIdx := strings.IndexRune(data, d.Delimiter)
  	jsonIdx := strings.Index(data, "{")
  	yamlIdx := strings.Index(data, ":")
  	tomlIdx := strings.Index(data, "=")
  
  	if isLowerIndexThan(csvIdx, jsonIdx, yamlIdx, tomlIdx) {
  		return CSV
  	}
  
  	if isLowerIndexThan(jsonIdx, yamlIdx, tomlIdx) {
  		return JSON
  	}
  
  	if isLowerIndexThan(yamlIdx, tomlIdx) {
  		return YAML
  	}
  
  	if tomlIdx != -1 {
  		return TOML
  	}
  
  	return ""
  }
docs: // FormatFromContentString tries to detect the format (JSON, YAML or TOML)
  // in the given string.
  // It return an empty string if no format could be detected.