Documentation ¶
Index ¶
Constants ¶
View Source
const ( FormatJSON = FormatType("json") FormatYAML = FormatType("yaml") FormatCSV = FormatType("csv") FormatTSV = FormatType("tsv") FormatSSV = FormatType("ssv") FormatShell = FormatType("shell") FormatLogfmt = FormatType("logfmt") FormatJSONL = FormatType("jsonl") )
Variables ¶
This section is empty.
Functions ¶
func DetectNestedFields ¶
func DetectNestedFields(records []interfaces.Record) (map[string]ValueType, error)
Types ¶
type Descriptor ¶
type Descriptor struct { Format FormatType TupleBased bool HasHeader bool NumColumns int ColumnNames []string FieldTypes map[string]ValueType }
func Sniff ¶
func Sniff(data []byte) (*Descriptor, error)
func (*Descriptor) Show ¶
func (d *Descriptor) Show(w io.Writer)
type FormatType ¶
type FormatType string
Click to show internal directories.
Click to hide internal directories.