Documentation ¶
Index ¶
- func CreateEmptyFile(path string) error
- func CreateFileBackup(fName string)
- func CreateFileWithContent(path, content string) error
- func RandomNumberSuffix(name string) string
- func RandomTmpFileName() string
- func RevealWildcardPaths(paths []string) []string
- func StartFileWatcher(path string, fsEventHanlder func(event fsnotify.Event), done chan struct{}, ...) (watcher *fsnotify.Watcher, err error)
- func TouchFile(path string) error
- func WriteContentIfNeed(file string, newContent []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEmptyFile ¶
func CreateFileBackup ¶
func CreateFileBackup(fName string)
func CreateFileWithContent ¶
func RandomNumberSuffix ¶
The suffix will consist of 128 bits of non-secure randomness composed in 32 hex digits, 16 bytes. For example, for "name-here" the call will produce something like "name-here-7d03f3e265dace994308fc812e9ab366"
func RandomTmpFileName ¶
func RandomTmpFileName() string
func RevealWildcardPaths ¶
func StartFileWatcher ¶
func WriteContentIfNeed ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.