chore: code formatting

Used `gofmt` for this.
chore: simplify function signature

Doing things the Go way.
feat: same CSV output format as `mysqldump`

Wrote a new CSV writer in Go for this. See
https://github.com/JensRantil/go-csv