util

package
v0.0.0-...-5fc95be Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decrypt

func Base64Decrypt(cipherstring string, keystring string) string

func Base64Encrypt

func Base64Encrypt(plainstring, keystring string) string

func Decrypt

func Decrypt(ciphertext []byte, keystring string) string

func Encrypt

func Encrypt(plainstring, keystring string) string

func Gunzip

func Gunzip(source, target string) error

Gunzip decompresses source with gunzip to the specified target directory.

func Gzip

func Gzip(source, target string) error

Gzip compresses source with gzip to the specified target directory.

func Tar

func Tar(source, target string) error

Tar creates a tarball of the provided source into the target directory.

func Untar

func Untar(tarball, target string) error

Untar explodes a tarball of the provided source into the target directory.

Types

type Header struct {
	Comment string    // comment
	Extra   []byte    // "extra data"
	ModTime time.Time // modification time
	Name    string    // file name
	OS      byte      // operating system type
}

The gzip file stores a header giving metadata about the compressed file. That header is exposed as the fields of the Writer and Reader structs.

Jump to

Keyboard shortcuts

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