result

package
v0.0.0-...-39ca940 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseResultCSV

func ParseResultCSV(path string) ([][]interface{}, error)

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

func ParseResultCSVShallow(path string) ([][]interface{}, error)

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

type ComplexField struct {
	Buffer string

	Pretty bool
	// contains filtered or unexported fields
}

func (*ComplexField) AST

func (t *ComplexField) AST() *node32

func (*ComplexField) Add

func (t *ComplexField) Add(rule pegRule, begin, end, index uint32)

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) Print

func (t *ComplexField) Print()

func (*ComplexField) PrintSyntaxTree

func (p *ComplexField) PrintSyntaxTree()

func (*ComplexField) Reset

func (p *ComplexField) Reset()

func (*ComplexField) Tokens

func (t *ComplexField) Tokens() []token32

func (*ComplexField) Trim

func (t *ComplexField) Trim(length uint32)

func (*ComplexField) WriteSyntaxTree

func (p *ComplexField) WriteSyntaxTree(w io.Writer)

Jump to

Keyboard shortcuts

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