utils

package
v0.0.0-...-e30e471 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(srcFile, dstFile string) error
func CopySymLink(source, dest string) error

func CreateIfNotExists

func CreateIfNotExists(dir string, perm os.FileMode) error

func DeleteDirectory

func DeleteDirectory(dir string) error

func DirExists

func DirExists(path string) bool

DirExists checks whether a directory exists

func Exists

func Exists(filePath string) bool

func FileExists

func FileExists(path string) bool

func GetFreePort

func GetFreePort() (port int, err error)

func GetHomeFolder

func GetHomeFolder() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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