package decoder
Import Path
github.com/goccy/go-json/internal/decoder (on go.dev)
Dependency Relation
imports 21 packages, and imported by one package
Involved Source Files
anonymous_field.go
array.go
assign.go
bool.go
bytes.go
compile.go
compile_norace.go
context.go
float.go
func.go
int.go
interface.go
invalid.go
map.go
number.go
option.go
path.go
ptr.go
slice.go
stream.go
string.go
struct.go
type.go
uint.go
unmarshal_json.go
unmarshal_text.go
wrapped_string.go
Package-Level Type Names (total 15)
type BasePathNode (struct)
( Decoder) Decode(*RuntimeContext, int64, int64, unsafe.Pointer) (int64, error)
( Decoder) DecodePath(*RuntimeContext, int64, int64) ([][]byte, int64, error)
( Decoder) DecodeStream(*Stream, int64, unsafe.Pointer) error
func CompileToGetDecoder(typ *runtime.Type) (Decoder, error)
func NewPathDecoder() Decoder
const ContextOption
const FirstWinOption
const PathOption
DoubleQuotePathSelector bool
RootSelectorOnly bool
SingleQuotePathSelector bool
(*Path) Field(sel string) (PathNode, bool, error)
(*Path) Get(src, dst reflect.Value) error
(*Path) String() string
*Path : expvar.Var
*Path : fmt.Stringer
func (*PathBuilder).Build(buf []rune) (*Path, error)
func PathString.Build() (*Path, error)
BasePathNode *BasePathNode
(*PathIndexAllNode) Field(fieldName string) (PathNode, bool, error)
(*PathIndexAllNode) Get(src, dst reflect.Value) error
(*PathIndexAllNode) Index(idx int) (PathNode, bool, error)
(*PathIndexAllNode) String() string
*PathIndexAllNode : PathNode
*PathIndexAllNode : expvar.Var
*PathIndexAllNode : fmt.Stringer
BasePathNode *BasePathNode
(*PathIndexNode) Field(fieldName string) (PathNode, bool, error)
(*PathIndexNode) Get(src, dst reflect.Value) error
(*PathIndexNode) Index(idx int) (PathNode, bool, error)
(*PathIndexNode) String() string
*PathIndexNode : PathNode
*PathIndexNode : expvar.Var
*PathIndexNode : fmt.Stringer
( PathNode) Field(fieldName string) (PathNode, bool, error)
( PathNode) Get(src, dst reflect.Value) error
( PathNode) Index(idx int) (PathNode, bool, error)
( PathNode) String() string
*PathIndexAllNode
*PathIndexNode
*PathRecursiveNode
*PathSelectorNode
PathNode : expvar.Var
PathNode : fmt.Stringer
func (*Path).Field(sel string) (PathNode, bool, error)
func (*PathIndexAllNode).Field(fieldName string) (PathNode, bool, error)
func (*PathIndexAllNode).Index(idx int) (PathNode, bool, error)
func (*PathIndexNode).Field(fieldName string) (PathNode, bool, error)
func (*PathIndexNode).Index(idx int) (PathNode, bool, error)
func PathNode.Field(fieldName string) (PathNode, bool, error)
func PathNode.Index(idx int) (PathNode, bool, error)
func (*PathRecursiveNode).Field(fieldName string) (PathNode, bool, error)
func (*PathRecursiveNode).Index(_ int) (PathNode, bool, error)
func (*PathSelectorNode).Field(fieldName string) (PathNode, bool, error)
func (*PathSelectorNode).Index(idx int) (PathNode, bool, error)
BasePathNode *BasePathNode
(*PathRecursiveNode) Field(fieldName string) (PathNode, bool, error)
(*PathRecursiveNode) Get(src, dst reflect.Value) error
(*PathRecursiveNode) Index(_ int) (PathNode, bool, error)
(*PathRecursiveNode) String() string
*PathRecursiveNode : PathNode
*PathRecursiveNode : expvar.Var
*PathRecursiveNode : fmt.Stringer
BasePathNode *BasePathNode
(*PathSelectorNode) Field(fieldName string) (PathNode, bool, error)
(*PathSelectorNode) Get(src, dst reflect.Value) error
(*PathSelectorNode) Index(idx int) (PathNode, bool, error)
(*PathSelectorNode) String() string
*PathSelectorNode : PathNode
*PathSelectorNode : expvar.Var
*PathSelectorNode : fmt.Stringer
const DoubleQuotePathSelector
const SingleQuotePathSelector
Buf []byte
Option *Option
func TakeRuntimeContext() *RuntimeContext
func ReleaseRuntimeContext(ctx *RuntimeContext)
func Decoder.Decode(*RuntimeContext, int64, int64, unsafe.Pointer) (int64, error)
func Decoder.DecodePath(*RuntimeContext, int64, int64) ([][]byte, int64, error)
DisallowUnknownFields bool
Option *Option
UseNumber bool
(*Stream) Buffered() io.Reader
(*Stream) More() bool
(*Stream) PrepareForDecode() error
(*Stream) Reset()
(*Stream) Token() (interface{}, error)
(*Stream) TotalOffset() int64
func NewStream(r io.Reader) *Stream
func Decoder.DecodeStream(*Stream, int64, unsafe.Pointer) error
Package-Level Functions (total 7)
func AssignValue(src, dst reflect.Value) error func CompileToGetDecoder(typ *runtime.Type) (Decoder, error) func NewPathDecoder() Decoder func ReleaseRuntimeContext(ctx *RuntimeContext) func TakeRuntimeContext() *RuntimeContext
Package-Level Variables (only one)
Package-Level Constants (total 5)
const ContextOption OptionFlags = 2 const DoubleQuotePathSelector QuotePathSelector = 2 const FirstWinOption OptionFlags = 1 const PathOption OptionFlags = 4 const SingleQuotePathSelector QuotePathSelector = 1![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |