Skip to content

Commit

Permalink
Merge pull request #280 from noborus/fix-tsv-psv
Browse files Browse the repository at this point in the history
Fixed automatic determination of TSV/PSV
  • Loading branch information
noborus authored May 24, 2024
2 parents 7f36018 + 3b35fff commit 477b93f
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 477b93f

Please sign in to comment.