common

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v1.0.1

func CopyFile(sourceFile string, destFile string) error

CopyFile copies a file from source to destinationn

func DefaultHome added in v1.0.1

func DefaultHome() string

DefaultHome returns User's Home Directory

func EnsureDir

func EnsureDir(dir string) error

EnsureDir ensures a directory is present, if it doesn't then creates it

func Exists

func Exists(path string) (bool, error)

Exists checks if a file or folder exists

func ListFiles added in v1.0.2

func ListFiles(dir string) []string

ListFiles returns the list of file names in given directory

func ShellScriptOnly added in v1.0.2

func ShellScriptOnly(files *[]string) filepath.WalkFunc

ShellScriptOnly returns a walk function which only processes shell scripts

Types

This section is empty.

Jump to

Keyboard shortcuts

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