csvutils

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

README

CSV Utils Open in Gitpod

Tests Status Go Report Card PkgGoDev

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToArrays

func ToArrays(filePath string) ([][]string, error)

ToArrays reads a CSV file and returns an array with each line of the file as array of strings

Parameters - filePath string - The path to the CSV file Returns - [][]string - The lines as array of string

func ToMaps

func ToMaps(filePath string, replacements map[string]string) (returnMap []map[string]string, err error)

ToMaps reads a CSV file and returns an array with each line of the file as a key-value map

Parameters - filePath string - The path to the CSV file Returns - []map[string]string - The lines each one as a map

Types

This section is empty.

Jump to

Keyboard shortcuts

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