encoding

package
v0.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	// Marshal format data to []byte
	Marshal(interface{}) ([]byte, error)
	// Unmarshal decode data from []byte
	Unmarshal([]byte, interface{}) error
}

Codec format data to []byte, decode data from []byte

type Compressor

type Compressor interface {
	// Compress get compress writer
	Compress(io.Writer) (io.WriteCloser, error)
	// Decompress get decompress reader
	Decompress(io.Reader) (io.ReadCloser, error)
	// SetLevel set compress level
	SetLevel(int) error
}

Compressor compressor interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL