common

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src string, dst string) error

CopyDir copies a whole directory recursively

func CopyFile

func CopyFile(src, dst string) error

CopyFile copies a single file from src to dst

func CopyFiles

func CopyFiles(srcFiles []string, dst string) error

func CreateFile added in v0.0.3

func CreateFile(filePath string) *os.File

func DownloadFile added in v0.0.4

func DownloadFile(filepath string, url string) error

func IsDirEmpty added in v0.0.4

func IsDirEmpty(name string) (bool, error)

func PanicIfErr added in v0.0.4

func PanicIfErr(err error)

func Unzip added in v0.0.4

func Unzip(src string, dest string) ([]string, error)

Unzip will decompress a zip archive, moving all files and folders within the zip file (parameter 1) to an output directory (parameter 2).

Types

This section is empty.

Jump to

Keyboard shortcuts

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