Documentation ¶
Index ¶
Constants ¶
View Source
const CSV = ls.LS + "csv/"
Variables ¶
This section is empty.
Functions ¶
func Import ¶
func Import(attributeID string, terms []TermSpec, startRow, nRows int, idRows []int, entityID string, required string, input [][]string) (*ls.Layer, error)
Import a CSV schema. The CSV file is organized as columns, one column for base attribute names, and other columns for overlays. CSV does not support nested attributes. Returns an array of Layer objects
Types ¶
type ErrColIndexOutOfBounds ¶
func (ErrColIndexOutOfBounds) Error ¶
func (e ErrColIndexOutOfBounds) Error() string
type ErrInvalidID ¶
type ErrInvalidID struct {
Row int
}
func (ErrInvalidID) Error ¶
func (e ErrInvalidID) Error() string
type Ingester ¶
Ingester is a wrapper for the ls/Ingester struct
type TermSpec ¶
type TermSpec struct { // The term Term string `json:"term"` // If nonempty, this template is used to build the term contents // with {{.term}}, and {{.row}} in template context. {{.term}} gives // the Term, and {{.row}} gives the cells of the current row TermTemplate string `json:"template"` // Is property an array Array bool `json:"array"` // Array separator character ArraySeparator string `json:"separator"` }
Click to show internal directories.
Click to hide internal directories.