util

package
v0.0.0-...-fa1582b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src string, dst string) (err error)

CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.

func CopyFile

func CopyFile(src, dst string) (err error)

func NewTarGZArchive

func NewTarGZArchive(inpath string) (out []byte, err error)

func RandomString

func RandomString(length int) string

func StringPtr

func StringPtr(str string) *string

func StringPtrSliceContains

func StringPtrSliceContains(sl []*string, s *string) bool

func StringSliceContains

func StringSliceContains(sl []string, s string) bool

func WriteZipFilesToTempDir

func WriteZipFilesToTempDir(files []*zip.File) (path string, dirs map[string][]os.FileInfo, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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