Documentation
¶
Index ¶
- Variables
- func AssignValue(src, dst reflect.Value) error
- func ReleaseRuntimeContext(ctx *RuntimeContext)
- func UnsafeNew(t *runtime.Type) unsafe.Pointer
- type BasePathNode
- type Decoder
- type Option
- type OptionFlags
- type Path
- type PathBuilder
- type PathIndexAllNode
- type PathIndexNode
- type PathNode
- type PathRecursiveNode
- type PathSelectorNode
- type PathString
- type QuotePathSelector
- type RuntimeContext
- type Stream
Constants ¶
This section is empty.
Variables ¶
View Source
var (
EmptyInterfaceType = emptyInterfaceType
)
Functions ¶
func AssignValue ¶ added in v0.0.5
func ReleaseRuntimeContext ¶
func ReleaseRuntimeContext(ctx *RuntimeContext)
Types ¶
type BasePathNode ¶ added in v0.0.5
type BasePathNode struct {
// contains filtered or unexported fields
}
type Decoder ¶
type Decoder interface { Decode(*RuntimeContext, int64, int64, unsafe.Pointer) (int64, error) DecodePath(*RuntimeContext, int64, int64) ([][]byte, int64, error) DecodeStream(*Stream, int64, unsafe.Pointer) error }
func CompileToGetDecoder ¶
func NewPathDecoder ¶ added in v0.0.5
func NewPathDecoder() Decoder
type Option ¶
type Option struct { TagName string Flags OptionFlags Context context.Context Path *Path }
type OptionFlags ¶
type OptionFlags uint8
const ( FirstWinOption OptionFlags = 1 << iota ContextOption PathOption )
type Path ¶ added in v0.0.5
type PathBuilder ¶ added in v0.0.5
type PathBuilder struct {
// contains filtered or unexported fields
}
type PathIndexAllNode ¶ added in v0.0.5
type PathIndexAllNode struct {
*BasePathNode
}
func (*PathIndexAllNode) Field ¶ added in v0.0.5
func (n *PathIndexAllNode) Field(fieldName string) (PathNode, bool, error)
func (*PathIndexAllNode) Get ¶ added in v0.0.5
func (n *PathIndexAllNode) Get(src, dst reflect.Value) error
func (*PathIndexAllNode) Index ¶ added in v0.0.5
func (n *PathIndexAllNode) Index(idx int) (PathNode, bool, error)
func (*PathIndexAllNode) String ¶ added in v0.0.5
func (n *PathIndexAllNode) String() string
type PathIndexNode ¶ added in v0.0.5
type PathIndexNode struct { *BasePathNode // contains filtered or unexported fields }
func (*PathIndexNode) Field ¶ added in v0.0.5
func (n *PathIndexNode) Field(fieldName string) (PathNode, bool, error)
func (*PathIndexNode) Get ¶ added in v0.0.5
func (n *PathIndexNode) Get(src, dst reflect.Value) error
func (*PathIndexNode) Index ¶ added in v0.0.5
func (n *PathIndexNode) Index(idx int) (PathNode, bool, error)
func (*PathIndexNode) String ¶ added in v0.0.5
func (n *PathIndexNode) String() string
type PathRecursiveNode ¶ added in v0.0.5
type PathRecursiveNode struct { *BasePathNode // contains filtered or unexported fields }
func (*PathRecursiveNode) Field ¶ added in v0.0.5
func (n *PathRecursiveNode) Field(fieldName string) (PathNode, bool, error)
func (*PathRecursiveNode) Get ¶ added in v0.0.5
func (n *PathRecursiveNode) Get(src, dst reflect.Value) error
func (*PathRecursiveNode) Index ¶ added in v0.0.5
func (n *PathRecursiveNode) Index(_ int) (PathNode, bool, error)
func (*PathRecursiveNode) String ¶ added in v0.0.5
func (n *PathRecursiveNode) String() string
type PathSelectorNode ¶ added in v0.0.5
type PathSelectorNode struct { *BasePathNode // contains filtered or unexported fields }
func (*PathSelectorNode) Field ¶ added in v0.0.5
func (n *PathSelectorNode) Field(fieldName string) (PathNode, bool, error)
func (*PathSelectorNode) Get ¶ added in v0.0.5
func (n *PathSelectorNode) Get(src, dst reflect.Value) error
func (*PathSelectorNode) Index ¶ added in v0.0.5
func (n *PathSelectorNode) Index(idx int) (PathNode, bool, error)
func (*PathSelectorNode) String ¶ added in v0.0.5
func (n *PathSelectorNode) String() string
type PathString ¶ added in v0.0.5
type PathString string
func (PathString) Build ¶ added in v0.0.5
func (s PathString) Build() (*Path, error)
type QuotePathSelector ¶ added in v0.0.5
type QuotePathSelector int
const ( SingleQuotePathSelector QuotePathSelector = 1 DoubleQuotePathSelector QuotePathSelector = 2 )
type RuntimeContext ¶
func TakeRuntimeContext ¶
func TakeRuntimeContext() *RuntimeContext
type Stream ¶
type Stream struct { UseNumber bool DisallowUnknownFields bool Option *Option // contains filtered or unexported fields }
func (*Stream) PrepareForDecode ¶
func (*Stream) TotalOffset ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.