isr

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DL = dl{}

Use `DL.From` to create a new DataList from a slice or multiple elements of any type.

View Source
var DT = dt{}

Use `DT.From` to create a new DataTable from a DataList, DL, Row, Col, []Row, []Col, CSV, JSON, map[string]any, or map[int]any.

Functions

func Name

func Name(value string) name

func PtrDL

func PtrDL[T *insyra.DataList | dl](l T) *dl

PtrDL converts a DataList or DL to a *DL.

func PtrDT

func PtrDT[T *insyra.DataTable | dt](t T) *dt

PtrDT converts a DataTable or DT to a *DT.

Types

type CSV

type CSV struct {
	FilePath   string
	InputOpts  CSV_inOpts
	OutputOpts CSV_outOpts
}

type CSV_inOpts

type CSV_inOpts struct {
	FirstCol2RowNames bool
	FirstRow2ColNames bool
}

type CSV_outOpts

type CSV_outOpts struct {
	RowNames2FirstCol bool
	ColNames2FirstRow bool
}

type Col

type Col map[any]any

DL is a type alias for map[any]any. It is used to represent a column in a DataTable. Every key in the map represents a row Index.

type DLs

type DLs = []insyra.IDataList

DLs is a type alias for []*DL. It is used to represent a list of DataList.

type JSON added in v0.1.7

type JSON struct {
	// FilePath is the path to the JSON file.
	FilePath string
}

type Row

type Row map[any]any

Row is a type alias for map[any]any. It is used to represent a row in a DataTable. Every key in the map represents a column Index or Number Index.

Jump to

Keyboard shortcuts

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