commands

package
v0.0.0-...-a838e88 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCSVDataset

func LoadCSVDataset(input *CSVFileInput) (dataset.Dataset, error)

func LoadJSONDataset

func LoadJSONDataset(input *JSONFileInput) (dataset.Dataset, error)

func SliceIndex

func SliceIndex(limit int, predicate func(i int) bool) int

Types

type CSVDataset

type CSVDataset struct {
	ColumnsInter []dataset.Column
	RowsInter    [][]interface{}
}

func (CSVDataset) Columns

func (d CSVDataset) Columns() []dataset.Column

func (CSVDataset) Rows

func (d CSVDataset) Rows() [][]interface{}

type CSVFileInput

type CSVFileInput struct {
	ColumnsFile *os.File
	RowsFile    *os.File
}

type JSONDataset

type JSONDataset struct {
	ColumnsInter []dataset.Column `json:"columns"`
	RowsInter    [][]interface{}  `json:"rows"`
}

func (JSONDataset) Columns

func (d JSONDataset) Columns() []dataset.Column

func (JSONDataset) Rows

func (d JSONDataset) Rows() [][]interface{}

type JSONFileInput

type JSONFileInput struct {
	File *os.File
}

Jump to

Keyboard shortcuts

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