compress

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm uint8
const (
	None Algorithm = iota
	Bzip2
	Gzip
	LZ4
	XZ
)

func Detect

func Detect(r io.Reader) (Algorithm, io.ReadCloser, error)

func Parse

func Parse(s string) Algorithm

func (Algorithm) DetectHeader

func (a Algorithm) DetectHeader(h []byte) bool

func (Algorithm) Extension

func (a Algorithm) Extension() string

func (Algorithm) IsNone

func (a Algorithm) IsNone() bool

func (Algorithm) MarshalJSON

func (a Algorithm) MarshalJSON() ([]byte, error)

func (Algorithm) MarshalText

func (a Algorithm) MarshalText() ([]byte, error)

func (Algorithm) Reader

func (a Algorithm) Reader(r io.Reader) (io.ReadCloser, error)

func (Algorithm) String

func (a Algorithm) String() string

func (*Algorithm) UnmarshalJSON

func (a *Algorithm) UnmarshalJSON(b []byte) error

func (*Algorithm) UnmarshalText

func (a *Algorithm) UnmarshalText(b []byte) error

func (Algorithm) Writer

func (a Algorithm) Writer(w io.WriteCloser) (io.WriteCloser, error)

Jump to

Keyboard shortcuts

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