Documentation ¶
Index ¶
- func DecodeType[T TypeGeneric](reader io.Reader) (T, error)
- func DecodeTypeSlice[T TypeGeneric](reader io.Reader) ([]T, error)
- func EncodeType[T TypeGeneric](writer io.Writer, value T) error
- func EncodeTypeSlice[T TypeGeneric](writer io.Writer, value []T) error
- type ReflectDecoder
- type ReflectEncoder
- type TypeGeneric
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeType ¶
func DecodeType[T TypeGeneric](reader io.Reader) (T, error)
func DecodeTypeSlice ¶
func DecodeTypeSlice[T TypeGeneric](reader io.Reader) ([]T, error)
func EncodeType ¶
func EncodeType[T TypeGeneric](writer io.Writer, value T) error
func EncodeTypeSlice ¶
func EncodeTypeSlice[T TypeGeneric](writer io.Writer, value []T) error
Types ¶
type ReflectDecoder ¶
type ReflectDecoder struct {
// contains filtered or unexported fields
}
func NewReflectDecoder ¶
func NewReflectDecoder(reader io.Reader) *ReflectDecoder
func (*ReflectDecoder) Decode ¶
func (d *ReflectDecoder) Decode(value any) error
type ReflectEncoder ¶
type ReflectEncoder struct {
// contains filtered or unexported fields
}
func NewReflectEncoder ¶
func NewReflectEncoder(writer io.Writer) *ReflectEncoder
func (*ReflectEncoder) Encode ¶
func (e *ReflectEncoder) Encode(value any) error
Click to show internal directories.
Click to hide internal directories.