Documentation
¶
Index ¶
- func Exists(path string) bool
- func MkdirP(path string) error
- func ReadFile(name string, readFunc ReadFunc) error
- func ReadJSON(path string, data interface{}) error
- func WriteFile(name string, writeFunc WriteFunc) error
- func WriteFileNotExist(name string, writeFunc WriteFunc) error
- func WriteJSON(path string, data interface{}) error
- type File
- type FileSystem
- type ReadFunc
- type WriteFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteFileNotExist ¶
Types ¶
type File ¶
type File interface {
io.Closer
io.Reader
io.ReaderAt
io.Seeker
io.Writer
Stat() (os.FileInfo, error)
}
File ...
type FileSystem ¶
type FileSystem interface {
Exists(path string) bool
MkdirP(path string) error
ReadJSON(path string, data interface{}) error
WriteJSON(path string, data interface{}) error
WriteFileNotExist(name string, writeFunc WriteFunc) error
ReadFile(name string, readFunc ReadFunc) error
WriteFile(name string, writeFunc WriteFunc) error
}
FileSystem ...
Click to show internal directories.
Click to hide internal directories.