decoding

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TYPE_UNKNOWN = iota
	TYPE_NULL
	TYPE_BOOLEAN
	TYPE_INT32
	TYPE_INT64
	TYPE_FLOAT64
	TYPE_DECIMAL128
	TYPE_STRING
	TYPE_ARRAY
	TYPE_OBJECT
)
View Source
const (
	SYMBOL_CURL_BRACER_OPEN  = '{'
	SYMBOL_CURL_BRACER_CLOSE = '}'
	SYMBOL_BRACER_OPEN       = '['
	SYMBOL_BRACER_CLOSE      = ']'
	SYMBOL_COMMA             = ','
	SYMBOL_DOUBLE_DOT        = ':'
	SYMBOL_QUOTE             = '"'
	SYMBOL_SLASH             = '/'
	SYMBOL_BACKSLASH         = '\\'
	SYMBOL_SPACE             = ' '
	SYMBOL_TAB               = '\t'
	SYMBOL_NEW_LINE          = '\n'
	SYMBOL_CARRIAGE_RETURN   = '\r'
)

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte) (interface{}, custom_error.CustomError)

func DecodeExt

func DecodeExt(data []byte) (interface{}, custom_error.CustomError)

func DecodeMigration

func DecodeMigration(data []byte) ([]interface{}, custom_error.CustomError)

Types

type Object

type Object struct {
	TypedValue interface{}
	RawValue   []byte
	Type       int64
}

Jump to

Keyboard shortcuts

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