csvutil

package
v0.0.0-...-b509ac4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal[T any](w *csv.Writer, values []T) error

Marshal writes the CSV representation of values to w.

func MarshalFile

func MarshalFile[T any](filepath string, values []T) error

MarshalFile writes the CSV representation of values to filepath.

func Unmarshal

func Unmarshal[T any](r *csv.Reader) ([]T, error)

Unmarshal reads the CSV file from r and unmarshals it into v.

func UnmarshalFile

func UnmarshalFile[T any](filepath string) ([]T, error)

UnmarshalFile reads the CSV file from filepath and unmarshals it into v.

Types

This section is empty.

Jump to

Keyboard shortcuts

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