readers

package
v0.0.0-...-f66e25d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataRecords

func DataRecords(i_lines chan Line, i_len int, i_data_until, i_end_of_line_marker string) chan CefRecord

func EachKeyVal

func EachKeyVal(i_lines chan Line) chan KeyVal

func EachLine

func EachLine(i_path string) chan Line

Types

type CefRecord

type CefRecord struct {
	Err    error
	Tokens []string
	//- Line string
	Line Line
}

func NewCefRecord

func NewCefRecord(l Line) *CefRecord

func (*CefRecord) Append

func (row *CefRecord) Append(t string)

func (CefRecord) String

func (row CefRecord) String() string

type KVState

type KVState int
const (
	B4_KEY KVState = iota
	KEY
	B4_EQ
	B4_VAL
	VAL_Q
	VAL
	B4_NEXT
	B4_NEXT_COMMENT
	B4_EOL
	EOL_COMMENT
	CONTINUE_NEXT_LINE
	COMMENT
	EOL
)

type KeyVal

type KeyVal struct {
	Key string
	Val []string

	Line Line //
}

func NewMetaKeyVal

func NewMetaKeyVal(k string, v []string) *KeyVal

func (KeyVal) NewSwitchKey

func (kv KeyVal) NewSwitchKey(k string) *KeyVal

func (KeyVal) String

func (kv KeyVal) String() string

type Line

type Line struct {
	// contains filtered or unexported fields
}

func (Line) String

func (l Line) String() string

type ROWState

type ROWState int
const (
	STX ROWState = iota
	TOK
	TOK_2
	QSTR
	QSTR_2
	ERROR
)

Jump to

Keyboard shortcuts

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