tabular

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVConfig

type CSVConfig struct {
	Path      string
	Delimiter rune
	HasHeader bool
}

type CSVReader

type CSVReader struct {
	// contains filtered or unexported fields
}

func NewCSVReader

func NewCSVReader(cfg CSVConfig) *CSVReader

func (*CSVReader) Read

func (r *CSVReader) Read(ctx context.Context) ([]Record, error)

type Reader

type Reader interface {
	Read(ctx context.Context) ([]Record, error)
}

Reader defines the contract for reading tabular records.

type Record

type Record struct {
	RowNumber int
	Values    map[string]string
}

Record is a normalized row from a tabular input source.

type XLSXConfig

type XLSXConfig struct {
	Path      string
	Sheet     string
	HasHeader bool
}

type XLSXReader

type XLSXReader struct {
	// contains filtered or unexported fields
}

func NewXLSXReader

func NewXLSXReader(cfg XLSXConfig) *XLSXReader

func (*XLSXReader) Read

func (r *XLSXReader) Read(ctx context.Context) ([]Record, error)

Jump to

Keyboard shortcuts

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