compress

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: Zlib Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ungzip

func Ungzip(r io.Reader, dst string) error

Ungzip extracts a .tar.gz archive from the provided reader to the specified destination directory.

func Unsupported

func Unsupported(io.Reader, string) error

Unsupported is a placeholder function for unsupported archive formats. It returns an error indicating that the archive format is not supported.

func Unzip

func Unzip(r io.Reader, dst string) error

Unzip extracts a .zip archive from the provided reader to the specified destination directory.

Types

type ExtractFunc

type ExtractFunc func(r io.Reader, dst string) error

ExtractFunc is a function type that defines the signature for extraction functions. For different archive formats, we can implement this interface to provide a unified extraction mechanism. The following functions implement the ExtractFunc interface for .zip and .tar.gz formats, respectively.

Jump to

Keyboard shortcuts

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