zstd

package
v1.10.15 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package zstd is an implementation of Compression interface using zstd format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZSTD

type ZSTD struct {
	// contains filtered or unexported fields
}

ZSTD implements Compression interface using gzip format.

func New

func New(level int) (*ZSTD, error)

New creates a new ZSTD instance.

func (*ZSTD) Compress

func (z *ZSTD) Compress(data []byte) ([]byte, error)

Compress will compress data using zstd format. In case of any errors, it will return raw data without compression.

Jump to

Keyboard shortcuts

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