Documentation ¶
Index ¶
- func CopyDir(src string, dst string) (err error)
- func CopyFile(src, dst string) (err error)
- func Distinct(input []string) []string
- func FileExists(filePath string) bool
- func GetDotGitDir(name string) string
- func GetGradleFile(name string) string
- func GetReadmeFile(name string) string
- func GetTempDirectory() string
- func GetWorkingDir(name string) string
- func Reverse(s []string) []string
- func TrimArray(s []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 FileExists ¶
func GetDotGitDir ¶ added in v1.1.0
func GetGradleFile ¶ added in v1.1.0
func GetReadmeFile ¶
func GetTempDirectory ¶ added in v1.1.0
func GetTempDirectory() string
func GetWorkingDir ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.