golang

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUnknownData                          = errors.New("unknow data")
	ErrorUnsupportedDataKind                  = errors.New("unsupported data type for conversion")
	ErrorCyclicAccess                         = errors.New("cyclic access to the object")
	ErrorInvalidMapKey                        = errors.New("map key can only be string or int")
	ErrorInvalidTypeOnExportedField           = errors.New("invalid exported field type for marshaling")
	ErrNotNumericValueField                   = errors.New("field is not having value of numeric type")
	ErrorInvalidJsonTag                       = errors.New("invalid json tag")
	ErrorStringConfigTypeInvalid              = errors.New("json tag string config only support pritmive data type")
	ErrorIncorrectSyntaxSymbolForConstructAST = errors.New("incorrect character for construct ast")
)

Functions

func NewASTGolangBaseBuilder added in v0.4.0

func NewASTGolangBaseBuilder(obj interface{}) (constructor.ASTBuilder, error)

Types

type ASTGolangBaseBuilder added in v0.4.0

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

func (*ASTGolangBaseBuilder) GetAST added in v0.4.0

func (i *ASTGolangBaseBuilder) GetAST() ast.JsonNode

func (*ASTGolangBaseBuilder) GetNextTokenType added in v0.4.0

func (t *ASTGolangBaseBuilder) GetNextTokenType() (token.TokenType, error)

put the store to syntax symbol here, to decouple the relation of reader and writer

func (*ASTGolangBaseBuilder) HasComplete added in v0.4.0

func (i *ASTGolangBaseBuilder) HasComplete() bool

func (*ASTGolangBaseBuilder) HasOpenElements added in v0.4.0

func (i *ASTGolangBaseBuilder) HasOpenElements() bool

func (*ASTGolangBaseBuilder) ReadBool added in v0.4.0

func (t *ASTGolangBaseBuilder) ReadBool() (bool, error)

func (*ASTGolangBaseBuilder) ReadNull added in v0.4.0

func (t *ASTGolangBaseBuilder) ReadNull() error

func (*ASTGolangBaseBuilder) ReadNumber added in v0.4.0

func (t *ASTGolangBaseBuilder) ReadNumber() (float64, error)

func (*ASTGolangBaseBuilder) ReadString added in v0.4.0

func (t *ASTGolangBaseBuilder) ReadString() ([]byte, error)

func (*ASTGolangBaseBuilder) ReadVariable added in v0.4.0

func (t *ASTGolangBaseBuilder) ReadVariable() ([]byte, error)

func (*ASTGolangBaseBuilder) RecordStateValue added in v0.4.0

func (t *ASTGolangBaseBuilder) RecordStateValue(valueType ast.AST_NODETYPE, nodeValue interface{}) error

func (*ASTGolangBaseBuilder) TopElementType added in v0.4.0

func (i *ASTGolangBaseBuilder) TopElementType() (ast.AST_NODETYPE, error)

Jump to

Keyboard shortcuts

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