dataset

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Row

type Row map[string]string

Row represents a single CSV row with column name to value mapping.

func LoadCSV

func LoadCSV(path string) ([]Row, error)

LoadCSV reads a CSV file and returns rows as maps of column to value. The first row is treated as headers (column names).

func LoadCSVRange

func LoadCSVRange(path string, start, end int) ([]Row, error)

LoadCSVRange reads rows in the given range [start, end] (1-based, inclusive). Row 1 is the first data row (after headers).

Jump to

Keyboard shortcuts

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