Versions in this module Expand all Collapse all v1 v1.7.0 Dec 12, 2018 Changes in this version + type API interface + Close func() error + CreateFile func(file string) error + FileExists func(file string) bool + GetFileNames func(paths []string) ([]string, error) + ReadFile func(file string) ([]byte, error) + Watch func(paths []string, onEvent func(event fsnotify.Event), onClose func()) error + WriteFile func(file string, data []byte) error + type Handler struct + func NewFsHandler() *Handler + func (fsh *Handler) Close() error + func (fsh *Handler) CreateFile(file string) error + func (fsh *Handler) FileExists(file string) bool + func (fsh *Handler) GetFileNames(paths []string) (files []string, err error) + func (fsh *Handler) ReadFile(file string) ([]byte, error) + func (fsh *Handler) Watch(paths []string, onEvent func(event fsnotify.Event), onClose func()) error + func (fsh *Handler) WriteFile(file string, data []byte) error + type Mock struct + func NewFileSystemMock() *Mock + func (mock *Mock) Close() error + func (mock *Mock) CreateFile(file string) error + func (mock *Mock) FileExists(file string) bool + func (mock *Mock) GetFileNames(paths []string) ([]string, error) + func (mock *Mock) ReadFile(file string) ([]byte, error) + func (mock *Mock) SendEvent(event fsnotify.Event) + func (mock *Mock) Watch(paths []string, onEvent func(event fsnotify.Event), onClose func()) error + func (mock *Mock) When(methodName string) *WhenResp + func (mock *Mock) WriteFile(file string, data []byte) error + type WhenResp struct + func (when *WhenResp) ThenReturn(item ...interface{}) Incompatible versions in this module v2.2.0+incompatible Aug 23, 2019 v2.1.0+incompatible May 9, 2019 v2.0.0+incompatible Apr 2, 2019