Added csv separator flag #1950

This commit is contained in:
Mike Farah
2024-02-17 19:11:41 +11:00
parent 42439b7d00
commit 9a8151d316
7 changed files with 89 additions and 12 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ type csvEncoder struct {
separator rune
}
func NewCsvEncoder(separator rune) Encoder {
return &csvEncoder{separator: separator}
func NewCsvEncoder(prefs CsvPreferences) Encoder {
return &csvEncoder{separator: prefs.Separator}
}
func (e *csvEncoder) CanHandleAliases() bool {