Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadData ¶
func NewColoredLogWriter ¶
func WriteToFile ¶
func WriteToFile(srcPath, destPath string, decomp Decompressor) error
writeToFile copies contents of file at srcPath to destPath, optionally decompressing the source contents if decomp is not nil.
Types ¶
type Decompressor ¶
Decompressor defines an interface to decompress data from io.Reader.
func NewDecompressor ¶
func NewDecompressor(format string) (Decompressor, error)
NewDecompressor returns a Decompressor for "format". If format is not supported, this returns a non-nil error.
Click to show internal directories.
Click to hide internal directories.