util

package
v0.0.0-...-81fa7a2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(source string, dest string) (err error)

CopyDir Recursively copies a directory tree, attempting to preserve permissions.

func CopyFile

func CopyFile(source string, dest string) (err error)

CopyFile copies file source to destination dest.

func Unzip

func Unzip(src, dest string) error

Unzip unzips a given archive to a target

func Zip

func Zip(source, target string) error

Types

type CustomError

type CustomError struct {
	What string
}

A struct for returning custom error messages

func (*CustomError) Error

func (e *CustomError) Error() string

Returns the error message defined in What as a string

Jump to

Keyboard shortcuts

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