utils

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 License: MIT Imports: 10 Imported by: 1 module, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskConfirmation

func AskConfirmation(question string) (bool, error)

func CopyDir added in v0.2.0

func CopyDir(src, dest string) error

CopyDir copies a directory from src to dest, recursively copying nested directories

func CopyFile added in v0.2.0

func CopyFile(src, dest string) error

CopyFile copies a file from the src to dest

func FileExists added in v0.2.0

func FileExists(filepath string) bool

FileExists checks if the file exists at the given path

func GenerateUID added in v0.2.0

func GenerateUID() string

GenerateUID returns a uid

func IsDir added in v0.2.0

func IsDir(path string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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