csvindexer

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetColumnsFromFiles added in v0.1.0

func GetColumnsFromFiles(fs fs.FS, files []string) ([]string, error)

Types

type CSVIndexer

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

func NewCSVIndexer

func NewCSVIndexer(fs fs.FS, files []string) (*CSVIndexer, error)

func (*CSVIndexer) Columns

func (r *CSVIndexer) Columns() []string

func (*CSVIndexer) Fetch

func (r *CSVIndexer) Fetch(idx int) ([]string, error)

func (*CSVIndexer) Range added in v0.1.3

func (r *CSVIndexer) Range(fn func(row []string) bool) error

func (*CSVIndexer) Total

func (r *CSVIndexer) Total() int

type FileOffset

type FileOffset struct {
	File   uint16
	Total  uint8 // each chunk has max 50 rows
	Offset int64
}

Jump to

Keyboard shortcuts

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