Versions in this module Expand all Collapse all v0 v0.99.0 Apr 14, 2024 Changes in this version + var EmptyInterfaceType = emptyInterfaceType + func AssignValue(src, dst reflect.Value) error + func ReleaseRuntimeContext(ctx *RuntimeContext) + func UnsafeNew(t *runtime.Type) unsafe.Pointer + type BasePathNode struct + type Decoder interface + Decode func(*RuntimeContext, int64, int64, unsafe.Pointer) (int64, error) + DecodePath func(*RuntimeContext, int64, int64) ([][]byte, int64, error) + DecodeStream func(*Stream, int64, unsafe.Pointer) error + func CompileToGetDecoder(typ *runtime.Type) (Decoder, error) + func NewPathDecoder() Decoder + type Option struct + Context context.Context + Flags OptionFlags + Path *Path + type OptionFlags uint8 + const ContextOption + const FirstWinOption + const PathOption + type Path struct + DoubleQuotePathSelector bool + RootSelectorOnly bool + SingleQuotePathSelector bool + func (p *Path) Field(sel string) (PathNode, bool, error) + func (p *Path) Get(src, dst reflect.Value) error + func (p *Path) String() string + type PathBuilder struct + func (b *PathBuilder) Build(buf []rune) (*Path, error) + type PathIndexAllNode struct + func (n *PathIndexAllNode) Field(fieldName string) (PathNode, bool, error) + func (n *PathIndexAllNode) Get(src, dst reflect.Value) error + func (n *PathIndexAllNode) Index(idx int) (PathNode, bool, error) + func (n *PathIndexAllNode) String() string + type PathIndexNode struct + func (n *PathIndexNode) Field(fieldName string) (PathNode, bool, error) + func (n *PathIndexNode) Get(src, dst reflect.Value) error + func (n *PathIndexNode) Index(idx int) (PathNode, bool, error) + func (n *PathIndexNode) String() string + type PathNode interface + Field func(fieldName string) (PathNode, bool, error) + Get func(src, dst reflect.Value) error + Index func(idx int) (PathNode, bool, error) + type PathRecursiveNode struct + func (n *PathRecursiveNode) Field(fieldName string) (PathNode, bool, error) + func (n *PathRecursiveNode) Get(src, dst reflect.Value) error + func (n *PathRecursiveNode) Index(_ int) (PathNode, bool, error) + func (n *PathRecursiveNode) String() string + type PathSelectorNode struct + func (n *PathSelectorNode) Field(fieldName string) (PathNode, bool, error) + func (n *PathSelectorNode) Get(src, dst reflect.Value) error + func (n *PathSelectorNode) Index(idx int) (PathNode, bool, error) + func (n *PathSelectorNode) String() string + type PathString string + func (s PathString) Build() (*Path, error) + type QuotePathSelector int + const DoubleQuotePathSelector + const SingleQuotePathSelector + type RuntimeContext struct + Buf []byte + Option *Option + func TakeRuntimeContext() *RuntimeContext + type Stream struct + DisallowUnknownFields bool + Option *Option + UseNumber bool + func NewStream(r io.Reader) *Stream + func (s *Stream) Buffered() io.Reader + func (s *Stream) More() bool + func (s *Stream) PrepareForDecode() error + func (s *Stream) Reset() + func (s *Stream) Token() (interface{}, error) + func (s *Stream) TotalOffset() int64