Documentation ¶
Index ¶
- Variables
- func CopyDir(src string, dst string, sync bool) (err error)
- func CopyFile(src, dst string, sync bool) (err error)
- func Exists(path string) (bool, error)
- func FindBindingPath(projectRootDir string) (path string, err error)
- func FindModPath(dir string) (path string, err error)
- func FirstCharToLower(s string) string
- func FirstCharToUpper(s string) string
- func GetThreadID() int
- func PrintColor(s string)
- func PrintColorln(s string)
- func RunCommand(env []string, dir, cmd string, args ...string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Verbose bool
)
Functions ¶
func CopyDir ¶
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 ¶
CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.
func FindBindingPath ¶ added in v0.0.2
func FindModPath ¶ added in v0.0.16
func FirstCharToLower ¶
func FirstCharToUpper ¶
func GetThreadID ¶
func GetThreadID() int
func PrintColor ¶
func PrintColor(s string)
func PrintColorln ¶
func PrintColorln(s string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.