csvutil

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixCSVFormatting

func FixCSVFormatting(in string) string

FixCSVFormatting is needed as for some reason the online provided file has line breaks in seemingly random entries. Fortunately they only consist of newlines followed by semicolons, (Basically one CSV entry is split over 2 lines) thus is easily fixable.

func NewSemicolonReader

func NewSemicolonReader(in io.Reader) gocsv.CSVReader

NewSemicolonReader is a stdlib CSV reader, but with a semicolon as separator, as it's needed for the files we parse.

func Windows1252ToUTF8

func Windows1252ToUTF8(in []byte) string

Windows1252ToUTF8 The CSV is Windows1252 encoded, but we want UTF8 to work with strings and cache the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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