Versions in this module Expand all Collapse all v0 v0.2.23 May 14, 2021 Changes in this version + func SaveToDataFolder(saver Saver, filename string, dataFolder DataFolder) error + type DataFolder interface + CleanFolder func() error + CreateFile func(filename string) error + DeleteFile func(filename string) error + FileExists func(filename string) bool + OpenReadonlyFile func(filename string) (io.ReadCloser, error) + OpenWriteOnlyFile func(filename string) (io.WriteCloser, error) + type DiskDataFolder struct + Path string + func NewDiskDataFolder(folderPath string) (*DiskDataFolder, error) + func (folder *DiskDataFolder) CleanFolder() error + func (folder *DiskDataFolder) CreateFile(filename string) error + func (folder *DiskDataFolder) DeleteFile(filename string) error + func (folder *DiskDataFolder) FileExists(filename string) bool + func (folder *DiskDataFolder) OpenReadonlyFile(filename string) (io.ReadCloser, error) + func (folder *DiskDataFolder) OpenWriteOnlyFile(filename string) (io.WriteCloser, error) + type FileSystemCleaner struct + func (cleaner FileSystemCleaner) GetFiles(directory string) (files []string, err error) + func (cleaner FileSystemCleaner) Remove(file string) + type NoSuchFileError struct + func NewNoSuchFileError(filename string) NoSuchFileError + func (err NoSuchFileError) Error() string + type Saver interface + Save func(writer io.Writer) error