csv

package
v0.0.0-...-d352b8c Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read[T Validator](name string, file io.Reader) ([]T, error)

func ReadFile

func ReadFile[T Validator](name string) ([]T, error)

ReadAll converts a CSV file into a list of T structs (all defined above), where the first CSV row matches field names. This is done via an intermediate JSON representation.

Types

type Validator

type Validator interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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