Documentation
¶
Index ¶
- func ArrayType(data []byte) (ast.Node, error)
- func BasicLit(data []byte) (ast.Node, error)
- func BuiltinType(data []byte) (ast.Node, error)
- func EnumItem(data []byte) (ast.Node, error)
- func EnumType(data []byte) (ast.Node, error)
- func EnumTypeDecl(data []byte) (ast.Node, error)
- func Field(data []byte) (ast.Node, error)
- func FieldList(data []byte) (ast.Node, error)
- func File(data []byte) (*ast.File, error)
- func FuncDecl(data []byte) (ast.Node, error)
- func FuncType(data []byte) (ast.Node, error)
- func Ident(data []byte) (ast.Node, error)
- func Include(data []byte) (ast.Node, error)
- func LvalueRefType(data []byte) (ast.Node, error)
- func Macro(data []byte) (ast.Node, error)
- func Node(data []byte) (ast.Node, error)
- func PointerType(data []byte) (ast.Node, error)
- func RecordType(data []byte) (ast.Node, error)
- func RvalueRefType(data []byte) (ast.Node, error)
- func ScopingExpr(data []byte) (ast.Node, error)
- func TagExpr(data []byte) (ast.Node, error)
- func Token(data []byte) (ast.Node, error)
- func TypeDecl(data []byte) (ast.Node, error)
- func TypeDefDecl(data []byte) (ast.Node, error)
- func Variadic(data []byte) (ast.Node, error)
- func XType(data []byte, xType ast.Node) (ast.Node, error)
- type DeserializeError
- type NodeUnmarshaler
- type UnexpectType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeserializeError ¶
type DeserializeError struct {
Func string // function name
TargetType any
Field string // optional, only for unmarshal node in a struct
Data string // origin raw json data
Err error // unmarshal error message
}
DeserializeError represents an error that occurs during json.Unmarshal. It provides context about where the error occurred and what was being unmarshaled.
func (*DeserializeError) Error ¶
func (e *DeserializeError) Error() string
type UnexpectType ¶
func (*UnexpectType) Error ¶
func (e *UnexpectType) Error() string
Click to show internal directories.
Click to hide internal directories.