Documentation ¶
Index ¶
- Variables
- func CD(dir string)
- func COPY(source string, target string)
- func COPYDIR(src string, dst string)
- func CWD() string
- func DELETE(filename string)
- func ECHO(message string)
- func ENDIR(path string, mode ...os.FileMode)
- func EXEC(command string)
- func EXISTS(path string) bool
- func ISDIR(path string) bool
- func ISDIREMPTY(dir string) bool
- func ISFILE(path string) bool
- func LOADBYTES(filename string) []byte
- func LOADSTRING(filename string) string
- func MD5FILE(filename string) string
- func MKDIR(path string, mode ...os.FileMode)
- func MUSTDELETE(filename string)
- func RENAME(source string, target string)
- func REPLACEALL(filename string, substitutions Sub)
- func RM(target string)
- func RMDIR(target string)
- func SAVEBYTES(filename string, data []byte)
- func SAVESTRING(filename string, data string)
- func SUBDIRS(rootDir string) []string
- func TOUCH(filepath string)
- type Sub
Constants ¶
This section is empty.
Variables ¶
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. Credit: https://gist.github.com/r0l1/92462b38df26839a3ca324697c8cba04
func ISDIREMPTY ¶
ISDIREMPTY returns true if the given directory is empty
func LOADSTRING ¶
LOADSTRING returns the contents of the given filename as a string
func REPLACEALL ¶
REPLACEALL replaces all substitution keys with associated values in the given file
func SAVESTRING ¶
SAVESTRING will create a file with the given string
Types ¶
Click to show internal directories.
Click to hide internal directories.