utils

package
v0.0.0-...-98814c4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2015 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExists

func CheckFileExists(file string)

func CheckWrite

func CheckWrite(f *os.File, e error)

func CompressFile

func CompressFile(src string, dst string) error

func FileModificationTime

func FileModificationTime(file string) (time.Time, error)

func FindFile

func FindFile(pattern string) (string, error)

func MakeTmpFile

func MakeTmpFile() (tmpdir, tmpfile string)

func ParseTime

func ParseTime(ts string) time.Time

Types

type GZReader

type GZReader struct {
	File *os.File
	Gzf  *gzip.Reader
}

func OpenGZFile

func OpenGZFile(filename string) GZReader

func (GZReader) Close

func (g GZReader) Close()

type GZWriter

type GZWriter struct {
	// contains filtered or unexported fields
}

func NewGZWriter

func NewGZWriter(filename string) (GZWriter, error)

func (GZWriter) Close

func (gz GZWriter) Close()

func (GZWriter) Write

func (gz GZWriter) Write(data []byte) error

Jump to

Keyboard shortcuts

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