Versions in this module Expand all Collapse all v1 v1.5.0 Oct 24, 2022 Changes in this version + const TypeKey + const ValueKey + func Marshal(v interface{}) ([]byte, error) + func MarshalToString(v interface{}) (string, error) + func RegisterTypeDecoder(typ string, dec jsoniter.ValDecoder) + func RegisterTypeEncoder(typ string, enc jsoniter.ValEncoder) + func Unmarshal(data []byte, v interface{}) error + func UnmarshalFromString(str string, v interface{}) error + type Decoder interface + Decode func(interface{}) error + func NewDecoder(r io.Reader) Decoder + type Encoder interface + Encode func(interface{}) error + func NewEncoder(w io.Writer) Encoder + type Marshaler interface + MarshalGraphson func() ([]byte, error) + type RawMessage []byte + func (m *RawMessage) UnmarshalGraphson(data []byte) error + func (m RawMessage) MarshalGraphson() ([]byte, error) + type Type string + const Date + const Timestamp + func (typ Type) CheckType(other Type) error + func (typ Type) String() string + type Typer interface + GraphsonType func() Type + type Types []Type + func (types Types) CheckType(typ Type) error + func (types Types) Contains(typ Type) bool + func (types Types) String() string + type Unmarshaler interface + UnmarshalGraphson func([]byte) error