compress

package
v0.0.44 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compress

type Compress interface {
	ExtractFiles(sourceFile, targetName string) error
}

Compress is a common compress interface

type GZip

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

GZip implements a compress which based gzip

func NewGZip

func NewGZip(additionBinaries []string) *GZip

NewGZip creates an instance of GZip additionBinaries could be empty or nil

func (*GZip) ExtractFiles

func (c *GZip) ExtractFiles(sourceFile, targetName string) (err error)

ExtractFiles extracts files from a target compress file

Jump to

Keyboard shortcuts

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