Documentation ¶
Index ¶
- func ParseResultCSV(path string) ([][]interface{}, error)
- func ParseResultCSVShallow(path string) ([][]interface{}, error)
- func ParseVal(val string, field *ComplexField) interface{}
- func Pretty(pretty bool) func(*ComplexField) error
- func Size(size int) func(*ComplexField) error
- type ComplexField
- func (t *ComplexField) AST() *node32
- func (t *ComplexField) Add(rule pegRule, begin, end, index uint32)
- func (p *ComplexField) Execute()
- func (p *ComplexField) Init(options ...func(*ComplexField) error) error
- func (p *ComplexField) Parse(rule ...int) error
- func (t *ComplexField) PrettyPrintSyntaxTree(buffer string)
- func (t *ComplexField) Print()
- func (p *ComplexField) PrintSyntaxTree()
- func (p *ComplexField) Reset()
- func (t *ComplexField) Tokens() []token32
- func (t *ComplexField) Trim(length uint32)
- func (p *ComplexField) WriteSyntaxTree(w io.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseResultCSV ¶
ParseResultCSV parses a result CSV that is compliant with RFC 4180, with additional logic added to extract nested arrays generated by PANDAS to_csv() calls.
func ParseResultCSVShallow ¶
ParseResultCSVShallow parses a result CSV that is compliant with RFC 4180. PANDAS nested structs are treated as strings.
func ParseVal ¶
func ParseVal(val string, field *ComplexField) interface{}
ParseVal parses a field value.
func Pretty ¶
func Pretty(pretty bool) func(*ComplexField) error
func Size ¶
func Size(size int) func(*ComplexField) error
Types ¶
type ComplexField ¶
func (*ComplexField) Execute ¶
func (p *ComplexField) Execute()
func (*ComplexField) Init ¶
func (p *ComplexField) Init(options ...func(*ComplexField) error) error
func (*ComplexField) Parse ¶
func (p *ComplexField) Parse(rule ...int) error
func (*ComplexField) PrettyPrintSyntaxTree ¶
func (t *ComplexField) PrettyPrintSyntaxTree(buffer string)
func (*ComplexField) PrintSyntaxTree ¶
func (p *ComplexField) PrintSyntaxTree()
func (*ComplexField) Reset ¶
func (p *ComplexField) Reset()
func (*ComplexField) WriteSyntaxTree ¶
func (p *ComplexField) WriteSyntaxTree(w io.Writer)
Click to show internal directories.
Click to hide internal directories.