Documentation ¶
Index ¶
- func AppendIfMissing(slice []string, slice2 []string) []string
- func AppendIfMissingElem(slice []string, i string) []string
- func CopyDir(src string, dst string) (err error)
- func CopyFile(src, dst string) (err error)
- func Difference(a, b []string) []string
- func IsAppType(wioPath string) (bool, error)
- func IsDir(path string) (bool, error)
- func IsEmpty(name string) (bool, error)
- func PathExists(path string) bool
- func PrettyPrintConfig(projectConfig types.Config, filePath string, showHelp bool) error
- func ReadWioConfig(path string) (types.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIfMissing ¶
It takes two slices and appends the second one onto the first one. It does not allow duplicates
func AppendIfMissingElem ¶
It takes in a slice and an element and then ut appends that element to the slice only if that element in not already in the slice
func CopyDir ¶ added in v0.3.2
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 v0.3.2
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 Difference ¶ added in v0.3.2
Eeturns elements in a that aren't in b
func IsDir ¶
Checks if the give path is a director and based on the returns true or false. If path does not exist, it throws an error
func PathExists ¶
Checks if path exists and returns true and false based on that
func PrettyPrintConfig ¶
Write configuration with nice spacing and information
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package io contains helper functions related to io This file contains all the utilities available to be used from copying files to reading JSON
|
Package io contains helper functions related to io This file contains all the utilities available to be used from copying files to reading JSON |