Versions in this module Expand all Collapse all v1 v1.2.99 Mar 6, 2023 v1.2.6-defaults Mar 6, 2023 v0 v0.0.1 Mar 9, 2023 Changes in this version + const CborStreamArray + const CborStreamBreak + const CborStreamBytes + const CborStreamMap + const CborStreamString + const GenVersion + var GoRpc goRpc + var MsgpackSpecRpc msgpackSpecRpc + var SelfExt = &extFailWrapper + func GenHelper() (g genHelper) + type BasicHandle struct + ExplicitRelease bool + TimeNotBuiltin bool + TypeInfos *TypeInfos + func (x *BasicHandle) AddExt(rt reflect.Type, tag byte, encfn func(reflect.Value) ([]byte, error), ...) (err error) + func (x *BasicHandle) SetExt(rt reflect.Type, tag uint64, ext Ext) (err error) + func (x BasicHandle) TimeBuiltin() bool + type BincHandle struct + AsSymbols uint8 + func (h *BincHandle) Name() string + func (h *BincHandle) SetBytesExt(rt reflect.Type, tag uint64, ext BytesExt) (err error) + func (x BincHandle) TimeBuiltin() bool + type BytesExt interface + ReadExt func(dst interface{}, src []byte) + WriteExt func(v interface{}) []byte + type CborHandle struct + IndefiniteLength bool + SkipUnexpectedTags bool + TimeRFC3339 bool + func (h *CborHandle) Name() string + func (h *CborHandle) SetInterfaceExt(rt reflect.Type, tag uint64, ext InterfaceExt) (err error) + func (x CborHandle) TimeBuiltin() bool + type DecodeOptions struct + DeleteOnNilMapValue bool + ErrorIfNoArrayExpand bool + ErrorIfNoField bool + InterfaceReset bool + InternString bool + MapType reflect.Type + MapValueReset bool + MaxDepth int16 + MaxInitLen int + PreferArrayOverSlice bool + PreferPointerForStructOrArray bool + RawToString bool + ReaderBufferSize int + SignedInteger bool + SliceElementReset bool + SliceType reflect.Type + ZeroCopy bool + type Decoder struct + func NewDecoder(r io.Reader, h Handle) *Decoder + func NewDecoderBytes(in []byte, h Handle) *Decoder + func NewDecoderString(s string, h Handle) *Decoder + func (d *Decoder) Decode(v interface{}) (err error) + func (d *Decoder) MustDecode(v interface{}) + func (d *Decoder) NumBytesRead() int + func (d *Decoder) Release() + func (d *Decoder) Reset(r io.Reader) + func (d *Decoder) ResetBytes(in []byte) + func (d *Decoder) ResetString(s string) + type EncodeOptions struct + Canonical bool + ChanRecvTimeout time.Duration + CheckCircularRef bool + NoAddressableReadonly bool + OptimumSize bool + Raw bool + RecursiveEmptyCheck bool + StringToRaw bool + StructToArray bool + WriterBufferSize int + type Encoder struct + func NewEncoder(w io.Writer, h Handle) *Encoder + func NewEncoderBytes(out *[]byte, h Handle) *Encoder + func (e *Encoder) Encode(v interface{}) (err error) + func (e *Encoder) MustEncode(v interface{}) + func (e *Encoder) Release() + func (e *Encoder) Reset(w io.Writer) + func (e *Encoder) ResetBytes(out *[]byte) + type Ext interface + type Handle interface + Name func() string + type InterfaceExt interface + ConvertExt func(v interface{}) interface{} + UpdateExt func(dst interface{}, src interface{}) + type JsonHandle struct + HTMLCharsAsIs bool + Indent int8 + IntegerAsString byte + MapKeyAsString bool + PreferFloat bool + RawBytesExt InterfaceExt + TermWhitespace bool + func (h *JsonHandle) Name() string + func (h *JsonHandle) SetInterfaceExt(rt reflect.Type, tag uint64, ext InterfaceExt) (err error) + func (x JsonHandle) TimeBuiltin() bool + type MapBySlice interface + MapBySlice func() + type MissingFielder interface + CodecMissingField func(field []byte, value interface{}) bool + CodecMissingFields func() map[string]interface{} + type MsgpackHandle struct + NoFixedNum bool + PositiveIntUnsigned bool + WriteExt bool + func (h *MsgpackHandle) Name() string + func (h *MsgpackHandle) SetBytesExt(rt reflect.Type, tag uint64, ext BytesExt) (err error) + func (x MsgpackHandle) TimeBuiltin() bool + type MsgpackSpecRpcMultiArgs []interface + type RPCOptions struct + RPCNoBuffer bool + type Raw []byte + type RawExt struct + Data []byte + Tag uint64 + Value interface{} + type Rpc interface + ClientCodec func(conn io.ReadWriteCloser, h Handle) rpc.ClientCodec + ServerCodec func(conn io.ReadWriteCloser, h Handle) rpc.ServerCodec + type Selfer interface + CodecDecodeSelf func(*Decoder) + CodecEncodeSelf func(*Encoder) + type SimpleHandle struct + EncZeroValuesAsNil bool + func (h *SimpleHandle) Name() string + func (h *SimpleHandle) SetBytesExt(rt reflect.Type, tag uint64, ext BytesExt) (err error) + func (x SimpleHandle) TimeBuiltin() bool + type TypeInfos struct + func NewTypeInfos(tags []string) *TypeInfos Other modules containing this package github.com/patricebensoussan/go