Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrStdoutNoForce = errors.New("ignoring stdout, use -f to compression") ErrHelp = errors.New("help requested") )
Functions ¶
func Compress ¶
Compression and Decompression functions used by the File.Process method. Bare metal support can be enabled, for example, witht the `tinygo` build tag. Setting these build tags will result in the use of pure go libraries for compression/decompression.
func Decompress ¶
Decompress takes gzip compressed input from io.Reader and expands it using pgzip or gzip, depending on the build tags. When the `tinygo` build tag is set, the `compress/gzip` package is used and the `processes` argument is ignored.
Types ¶
type File ¶
File is a file path to be compressed or decompressed.
func (*File) CheckOutputPath ¶
CheckOutputPath checks if output is attempting to write binary to stdout if stdout is a device. Also checks if output path already exists. Allow override via force option.
func (*File) CheckOutputStdout ¶
CheckOutputStdout checks if output is attempting to write binary to stdout if stdout is a device.
func (*File) CheckPath ¶
CheckPath validates the input file path. Checks on compression if the path has the correct suffix, and on decompression checks that it doesn't have the suffix. Allows override by force option. Skip if the input is a Stdin.