Versions in this module Expand all Collapse all v0 v0.9.1 Mar 10, 2021 Changes in this version + func CheckPath(path string) error + func CloseFile(file *os.File) error + func Color(colorName string) *color.Color + func CreateAllDir(path string) error + func CreateAllDirIfNotExist(path string) error + func CreateBuildDirIfNotExist(buildDir string) error + func CreateFile(path string, content []byte) (*os.File, error) + func CurrentAbsolutePath(relPath string) (string, error) + func CurrentRootPath() (string, error) + func DefaultColor() *color.Color + func FileChecksum(path string) (string, error) + func IsCreate(ev fsnotify.Event) bool + func IsDir(path string) (bool, error) + func IsRemove(ev fsnotify.Event) bool + func IsWrite(ev fsnotify.Event) bool + func OpenFile(path string) (*os.File, error) + func ReadFile(path string) ([]byte, error) + func RelPath(root string, path string) (string, error) + func RemoveAllDir(path string) error + func RemoveFile(filePath string) error + func RemoveFileIfExist(path string) error + func RemoveRootBuildDir(relBuildDir string) error + func RemoveRootDir(relPath string) error + func WithLock(mu *sync.RWMutex, f func()) + func WithLockAndError(mu *sync.RWMutex, f func() error) error + func WithLockAndLog(ll *sync.Mutex, f func()) + func WriteFile(file *os.File, content []byte) error + type Batcher struct + Errors chan []error + Events chan []fsnotify.Event + func NewBatcher(interval time.Duration) (*Batcher, error) + func (b *Batcher) Close() + type FileChecksums struct + func NewFileChecksums() *FileChecksums + func (c *FileChecksums) HasChanged(path string, checksum string) bool + func (c *FileChecksums) UpdateFileChecksum(path string, checksum string)