Skip to content

Commit

Permalink
Fixed automatic determination of TSV/PSV
Browse files Browse the repository at this point in the history
The delimiter was not automatically set for TSV/PSV
(it worked only when the delimiter was specified).
  • Loading branch information
noborus committed May 24, 2024
1 parent 7f36018 commit 3b35fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ var readerFuncs = map[Format]ReaderFunc{
return NewTBLNReader(reader, opts)
},
TSV: func(reader io.Reader, opts *ReadOpts) (Reader, error) {
return NewCSVReader(reader, opts)
return NewTSVReader(reader, opts)
},
PSV: func(reader io.Reader, opts *ReadOpts) (Reader, error) {
return NewCSVReader(reader, opts)
return NewPSVReader(reader, opts)
},
WIDTH: func(reader io.Reader, opts *ReadOpts) (Reader, error) {
return NewGWReader(reader, opts)
Expand Down

0 comments on commit 3b35fff

Please sign in to comment.