iocsv

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCSV

func ReadCSV(fileData string, skipHeader bool, headAr []string) (*data.Table, error)

ReadCSV read line of CSV data

func ReadCSVFromFile

func ReadCSVFromFile(filePath string, skipHeader bool, headAr []string) (*data.Table, error)

ReadCSVFromFile

read a file as a CSV and return a Table
skipHeader (true) will skip the first line for data but use it for column names
skipHeader (false) will include all lines for data and use headAr for column names

func ReadKV

func ReadKV(filePathStr string) *map[string]string

ReadKV read in the file as a key/value pair and return a map of string/string

func ReadOrderedKV

func ReadOrderedKV(filePathStr string) (*orderedmap.OrderedMap, error)

ReadOrderedKV reads in as an ordered Map

Types

This section is empty.

Jump to

Keyboard shortcuts

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