csvutils

package
v0.0.86 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeNonUTF8CSV added in v0.0.70

func DecodeNonUTF8CSV(data [][]string) [][]string

func GetCSVDataType added in v0.0.69

func GetCSVDataType(raw []byte, separator rune) ([]string, [][]string, map[string]string, error)

GetCSVDataType is delegated to retrieve the data type for every field of the CSV Return: headers, csv data, data type, error

func ReadCSV added in v0.0.43

func ReadCSV(buf []byte, separator rune) ([]string, [][]string, error)

ReadCSV is delegated to read into a CSV the content of the bytes in input []string -> Headers of the CSV [][]string -> Content of the CSV

func WriteCSV added in v0.0.44

func WriteCSV(headers []string, records [][]string, separator rune) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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