Documentation
¶
Index ¶
- func Exists(path string) bool
- func MkdirP(path string) error
- func ReadJSON(path string, data interface{}) error
- func WriteFile(name string, writeFunc func(writer io.Writer) error) error
- func WriteFileNotExist(name string, writeFunc func(writer io.Writer) error) error
- func WriteJSON(path string, data interface{}) error
- type File
- type FileSystem
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
WriteFile(name string, writeFunc func(writer io.Writer) error) error
WriteFileNotExist(name string, writeFunc func(writer io.Writer) error) error
WriteJSON(path string, data interface{}) error
ReadJSON(path string, data interface{}) error
}
FileSystem ...
Click to show internal directories.
Click to hide internal directories.