csvdelimiter

package module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2020 License: MIT Imports: 7 Imported by: 0

README

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.

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var DefaultDelimiters = runeDict{',', ';', '\t'}

DefaultDelimiters are the delimiters used if none are provided

Functions

func NewReader

func NewReader(r io.Reader, delimiters ...rune) (*csv.Reader, error)

NewReader will return a csv.Reader with auto detected delimiter. If delimiters arg is omitted DefaultDelimiters will be used

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL