GobCodec implements the Codec interface using encoding/gob for serialization.
Provides efficient binary encoding/decoding with proper handling of nil and zero values.
Note: gob requires types to be registered for interface{} encoding.
Decode deserializes gob bytes into the provided value pointer.
Returns nil error for nil data (leaves v unchanged).
The v parameter must be a pointer to the target type.
JSONCodec implements the Codec interface using encoding/json for serialization.
Provides standard JSON encoding/decoding with proper handling of nil and zero values.
Decode deserializes JSON bytes into the provided value pointer.
Returns nil error for nil data (leaves v unchanged).
The v parameter must be a pointer to the target type.
MessagePackCodec implements the Codec interface using MessagePack for serialization.
Provides efficient binary encoding/decoding with proper handling of nil and zero values.
Decode deserializes MessagePack bytes into the provided value pointer.
Returns nil error for nil data (leaves v unchanged).
The v parameter must be a pointer to the target type.