Documentation ¶
Index ¶
- Constants
- func Contains(s []string, e string) bool
- func CreateDirIfNotExist(path string, perm os.FileMode) error
- func CreateFileIfNotExist(filePath string, perm os.FileMode) error
- func IsDirectory(path string) (bool, error)
- func IsYaml(s []byte) (bool, error)
- func Retry(attempts int, sleep time.Duration, fn func() error) error
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CreateDirIfNotExist ¶ added in v0.0.6
CreateDirIfNotExist returns whether the given directory exists Attempts to create the full path if it does not exist
func CreateFileIfNotExist ¶ added in v0.0.6
CreateFileIfNotExist returns whether the given file exists Attempts to create the full path and file if it does not exist
func IsDirectory ¶ added in v0.0.6
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.