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 EnsureLink(source, target string) error
- func IsDirectory(path string) (bool, error)
- func IsYaml(s []byte) (bool, error)
- func Retry(attempts int, sleep time.Duration, fn func() error) error
- type StringReplacer
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func CreateDirIfNotExist ¶ added in v0.0.6
CreateDirIfNotExist attempts to create the path if it does not exist
func CreateFileIfNotExist ¶ added in v0.0.6
CreateFileIfNotExist attempts to create the path and file if it does not exist
func EnsureLink ¶ added in v0.1.3
EnsureLink ensures that a link to the source exists at the target Both source and target should be full paths
func IsDirectory ¶ added in v0.0.6
IsDirectory returns true if the given path is a directory, false otherwise
Types ¶
type StringReplacer ¶ added in v0.1.3
type StringReplacer string
StringReplacer represents the StringReplacer type
func (StringReplacer) ReplaceAll ¶ added in v0.1.3
func (sr StringReplacer) ReplaceAll(replace, with string) StringReplacer
ReplaceAll finds and replaces all instances of 'replace' with 'with'
func (StringReplacer) String ¶ added in v0.1.3
func (sr StringReplacer) String() string
String stringifies the StringReplacer
Click to show internal directories.
Click to hide internal directories.