Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrStdoutNoForce = errors.New("ignoring stdout, use -f to compression") ErrHelp = errors.New("help requested") )
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.