code: func FormatFromString(formatStr string) Format {
  	formatStr = strings.ToLower(formatStr)
  	if strings.Contains(formatStr, ".") {
  		// Assume a filename
  		formatStr = strings.TrimPrefix(filepath.Ext(formatStr), ".")
  
  	}
  	switch formatStr {
  	case "yaml", "yml":
  		return YAML
  	case "json":
  		return JSON
  	case "toml":
  		return TOML
  	case "org":
  		return ORG
  	case "csv":
  		return CSV
  	}
  
  	return ""
  
  }
docs: // FormatFromString turns formatStr, typically a file extension without any ".",
  // into a Format. It returns an empty string for unknown formats.