Documentation ¶ Index ¶ type GobCodec func NewGobCodec[K any, V any]() *GobCodec[K, V] func (c *GobCodec[K, V]) DecodeKey(data []byte) (k K, err error) func (c *GobCodec[K, V]) DecodeVal(data []byte) (v V, err error) func (c *GobCodec[K, V]) EncodeKey(data K) (k []byte, err error) func (c *GobCodec[K, V]) EncodeVal(data V) (v []byte, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type GobCodec ¶ type GobCodec[K any, V any] struct{} func NewGobCodec ¶ func NewGobCodec[K any, V any]() *GobCodec[K, V] func (*GobCodec[K, V]) DecodeKey ¶ func (c *GobCodec[K, V]) DecodeKey(data []byte) (k K, err error) DecodeKey gob decode key func (*GobCodec[K, V]) DecodeVal ¶ func (c *GobCodec[K, V]) DecodeVal(data []byte) (v V, err error) DecodeVal gob decode value func (*GobCodec[K, V]) EncodeKey ¶ func (c *GobCodec[K, V]) EncodeKey(data K) (k []byte, err error) func (*GobCodec[K, V]) EncodeVal ¶ func (c *GobCodec[K, V]) EncodeVal(data V) (v []byte, err error) EncodeVal gob encode value Source Files ¶ View all Source files gobc.go Click to show internal directories. Click to hide internal directories.