Documentation
¶
Overview ¶
Package encoding provides functionality for encoding and decoding data
Index ¶
- func GobDecoder(r io.Reader, v any) error
- func GobEncoder(w io.Writer, v any) (int, error)
- func GzipJSONDecoder(r io.Reader, v any) error
- func GzipJSONEncoder(w io.Writer, v any) (int, error)
- func JSONDecoder(r io.Reader, v any) error
- func JSONEncoder(w io.Writer, v any) (int, error)
- func ZlibCBORDecoder(r io.Reader, v any) error
- func ZlibCBOREncoder(w io.Writer, v any) (int, error)
- type DecoderFunc
- type EncoderFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GobDecoder ¶
GobDecoder decodes gob data from a reader into a value
func GobEncoder ¶
GobEncoder encodes a value into gob and writes it to a writer
func GzipJSONDecoder ¶
GzipJSONDecoder decodes gzip-compressed JSON data from a reader into a value
func GzipJSONEncoder ¶
GzipJSONEncoder encodes a value into gzip-compressed JSON and writes it to a writer
func JSONDecoder ¶
JSONDecoder decodes JSON data from a reader into a value
func JSONEncoder ¶
JSONEncoder encodes a value into JSON and writes it to a writer
func ZlibCBORDecoder ¶
ZlibCBORDecoder decodes zlib-compressed CBOR data from a reader into a value
Types ¶
type DecoderFunc ¶
DecoderFunc defines a function type for decoding data from a reader into a value
Click to show internal directories.
Click to hide internal directories.