Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
Filesystem saves/reads content to/from filesystem.
func NewFilesystem ¶
func NewFilesystem(dir string) *Filesystem
NewFilesystem returns new Filesystem instance. Empty dir defaulted to os.TempDir().
func (*Filesystem) FindContent ¶
FindContent reads the file and returns the contents.
func (*Filesystem) SaveContent ¶
SaveContent writes content to the file.
Click to show internal directories.
Click to hide internal directories.