csvmap

package
v0.0.0-...-e1a96a7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRecord = errors.New("invalid record")

Functions

func CustomEncode

func CustomEncode(w io.Writer, hook func(*csv.Writer), d *Document) error

func Encode

func Encode(w io.Writer, d *Document) error

Types

type Document

type Document struct {
	Header []string
	Rows   [][]any
}

func CustomDecode

func CustomDecode(r io.Reader, hook func(*csv.Reader)) (*Document, error)

func Decode

func Decode(r io.Reader) (*Document, error)

func (*Document) Append

func (d *Document) Append(rec map[string]any) error

func (*Document) Len

func (d *Document) Len() int

func (*Document) Record

func (d *Document) Record(i int) map[string]any

Jump to

Keyboard shortcuts

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