csvfmt

command module
v0.0.0-...-3dd1234 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 10 Imported by: 0

README

csvfmt

Interactive CLI tool to convert CSV files between locale formats (EN/DE).

German Excel exports use ; as delimiter and , as decimal separator, while English exports use , and .. This tool auto-detects the source format and lets you interactively confirm and convert.

Install

go install github.com/fxsml/csvfmt@latest

Or build from source:

go build -o csvfmt .

Usage

csvfmt <input.csv> <output.csv>

The tool will:

  1. Auto-detect delimiter and decimal separator
  2. Walk you through confirming source format, choosing target format, and selecting which columns contain numbers
  3. Preview the converted output
  4. Write the result

Example

# German to English
csvfmt data_de.csv data_en.csv

# English to German
csvfmt data_en.csv data_de.csv

Supported formats

Locale Delimiter Decimal Example
EN , . 1,234.56
DE ; , 1.234,56
Tab \t either 1234.56

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL