compressor

package
v0.0.0-...-04bc891 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2013 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressCopy

func CompressCopy(w io.Writer, r io.Reader, compressMethod string) (int64, error)

CompressCopy copies from reader to writer, compressing in between using the given compressMethod

func CompressToTemp

func CompressToTemp(r io.Reader, compressMethod string) (tempfn string, err error)

compresses from reader to a tempfile, returning its name

func ExternalCompressCopy

func ExternalCompressCopy(dst io.Writer, src io.Reader, compressMethod string) error

uses external program for compression

func ExternalDecompressCopy

func ExternalDecompressCopy(dst io.Writer, src io.Reader, compressMethod string) error

uses external program for decompression

func RandString

func RandString(length int) string

RandString returns a random string

func Register

func Register(name, path string)

registers an executable for the given name (file extension)

func ShorterMethod

func ShorterMethod(name string) string

shortens the method name (gzip->gz, bzip2->bz2)

Types

This section is empty.

Jump to

Keyboard shortcuts

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