datafiles

package
v0.1.2-0...-b48ce14 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: EPL-1.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 CsvData

type CsvData struct {
	Keyed     cli.DataFile
	Data      [][]string
	Delimiter rune
}

func NewCsvData

func NewCsvData(keyed cli.DataFile, delimiter rune) *CsvData

func (*CsvData) HasData

func (d *CsvData) HasData() bool

func (*CsvData) MapFieldNames

func (d *CsvData) MapFieldNames() ([]map[string]interface{}, error)

func (*CsvData) Parse

func (d *CsvData) Parse() (*CsvData, error)

type JsonData

type JsonData struct {
	Keyed cli.DataFile
	Data  map[string]interface{}
}

func NewJsonData

func NewJsonData(keyed cli.DataFile) *JsonData

func (*JsonData) Unmarshal

func (d *JsonData) Unmarshal() (interface{}, error)

Jump to

Keyboard shortcuts

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