Documentation ¶
Index ¶
- func CompressCopy(w io.Writer, r io.Reader, compressMethod string) (int64, error)
- func CompressToTemp(r io.Reader, compressMethod string) (tempfn string, err error)
- func ExternalCompressCopy(dst io.Writer, src io.Reader, compressMethod string) error
- func ExternalDecompressCopy(dst io.Writer, src io.Reader, compressMethod string) error
- func RandString(length int) string
- func Register(name, path string)
- func ShorterMethod(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressCopy ¶
CompressCopy copies from reader to writer, compressing in between using the given compressMethod
func CompressToTemp ¶
compresses from reader to a tempfile, returning its name
func ExternalCompressCopy ¶
uses external program for compression
func ExternalDecompressCopy ¶
uses external program for decompression
func Register ¶
func Register(name, path string)
registers an executable for the given name (file extension)
func ShorterMethod ¶
shortens the method name (gzip->gz, bzip2->bz2)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.