Documentation ¶
Index ¶
- Variables
- func Marshal(v interface{}) ([]byte, error)
- func Unmarshal(data []byte, v interface{}) error
- func Valid(data []byte) bool
- type Decoder
- type Encoder
- type InvalidUnmarshalError
- type Marshaler
- type MarshalerError
- type PHPClass
- type RawMessage
- type Serializer
- type SyntaxError
- type UnSerializer
- type UnmarshalTypeError
- type Unmarshaler
- type UnsupportedTypeError
- type UnsupportedValueError
Constants ¶
This section is empty.
Variables ¶
View Source
var SerializePrecision = -1
Functions ¶
Types ¶
type InvalidUnmarshalError ¶
func (*InvalidUnmarshalError) Error ¶
func (e *InvalidUnmarshalError) Error() string
type MarshalerError ¶
func (*MarshalerError) Error ¶
func (e *MarshalerError) Error() string
func (*MarshalerError) Unwrap ¶
func (e *MarshalerError) Unwrap() error
type RawMessage ¶
type RawMessage []byte
func (RawMessage) MarshalPHP ¶
func (m RawMessage) MarshalPHP() ([]byte, error)
func (*RawMessage) UnmarshalPHP ¶
func (m *RawMessage) UnmarshalPHP(data []byte) error
type Serializer ¶
type SyntaxError ¶
type SyntaxError struct { Offset int64 // contains filtered or unexported fields }
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
type UnSerializer ¶
type UnmarshalTypeError ¶
type UnmarshalTypeError struct { Value string Type reflect.Type Offset int64 Struct string Field string }
func (*UnmarshalTypeError) Error ¶
func (e *UnmarshalTypeError) Error() string
type Unmarshaler ¶
type UnsupportedTypeError ¶
func (*UnsupportedTypeError) Error ¶
func (e *UnsupportedTypeError) Error() string
type UnsupportedValueError ¶
func (*UnsupportedValueError) Error ¶
func (e *UnsupportedValueError) Error() string
Click to show internal directories.
Click to hide internal directories.