Documentation ¶
Index ¶
- type DefaultFs
- func (f *DefaultFs) Exists(path string) (bool, error)
- func (f *DefaultFs) FilePathSeparator() string
- func (f *DefaultFs) Mkdir(path string) error
- func (f *DefaultFs) MkdirAll(path string) error
- func (f *DefaultFs) ReadFile(path string) (string, error)
- func (f *DefaultFs) Walk(root string, fc func(path string, info os.FileInfo, err error) error) error
- func (f *DefaultFs) WriteFile(path string, data string, force bool) error
- type FileSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystem interface { ReadFile(path string) (string, error) WriteFile(path string, data string, force bool) error Mkdir(path string) error MkdirAll(path string) error FilePathSeparator() string Exists(path string) (bool, error) Walk(root string, fc func(path string, info os.FileInfo, err error) error) error // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.