Documentation ¶
Index ¶
- func CSV(input []byte) (tokens <-chan CSVToken)
- func Form(data []byte, class map[FormToken]string) ([]byte, error)
- func JSON(input []byte) (tokens <-chan JSONToken)
- func XML(data []byte, class map[XMLToken]string) ([]byte, error)
- type CSVToken
- type CSVTokenType
- type FormToken
- type JSONToken
- type JSONTokenType
- type XMLToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CSVToken ¶
type CSVToken struct { Type CSVTokenType Value []byte }
type CSVTokenType ¶
type CSVTokenType uint8
const ( CSV_COM CSVTokenType // ',' CSV_HED // header name CSV_FLD // record field CSV_NL // new line CSV_EOF // end of the csv input )
type JSONToken ¶
type JSONToken struct { Type JSONTokenType Value []byte }
type JSONTokenType ¶
type JSONTokenType uint8
const ( JSON_LSB JSONTokenType // '[' JSON_RSB // ']' JSON_LCB // '{' JSON_RCB // '}' JSON_CLN // ':' JSON_COM // ',' JSON_STR // a json string JSON_NUM // a json number JSON_TRU // 'true' JSON_FAL // 'false' JSON_NUL // 'null' JSON_KEY // a json object key JSON_WS // white space JSON_EOF // end of the json input )
Click to show internal directories.
Click to hide internal directories.