Utility to detect delimiter on an csv file and continue to read file without effort
Find a file
2024-04-05 13:14:38 +02:00
go.mod use only std for errors 2024-04-05 13:14:38 +02:00
go.sum use only std for errors 2024-04-05 13:14:38 +02:00
LICENSE Update license 2020-08-15 22:44:53 +02:00
main.go use only std for errors 2024-04-05 13:14:38 +02:00
main_test.go trim down api 2020-08-16 08:36:49 +02:00
parser.go primary commit 2020-08-15 22:05:26 +02:00
README.md add readme 2020-08-27 23:18:41 +02:00
scores.go use only std for errors 2024-04-05 13:14:38 +02:00

go.dev reference

Package csvdelimiter

go get "codeberg.org/markysand/csvdelimiter"

Package csvdelimiter is a simple csv delimiter detector package that works with io.Reader inputs.

Package csvdelimiter uses a rudimentary algorithm for detecting the delimiter, searching for the most frequently used letter out of a subset of approved delimiter letters. Extra weight is added depending on how the delimiter relates to citation marks.

For most use cases it should not fail.