Documentation ¶
Index ¶
- type FileStorage
- func (s *FileStorage) AppFileExists(filename string) (bool, error)
- func (_ *FileStorage) CreateStoreFolderIfNotExists() error
- func (_ *FileStorage) GetFilepath(filename string) (string, error)
- func (s *FileStorage) Load(filename string) ([]byte, error)
- func (s *FileStorage) Save(filename string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶
type FileStorage struct{}
func New ¶
func New() *FileStorage
func (*FileStorage) AppFileExists ¶
func (s *FileStorage) AppFileExists(filename string) (bool, error)
func (*FileStorage) CreateStoreFolderIfNotExists ¶
func (_ *FileStorage) CreateStoreFolderIfNotExists() error
func (*FileStorage) GetFilepath ¶
func (_ *FileStorage) GetFilepath(filename string) (string, error)
GetFilepath returns the application's data joined with the given filename
Click to show internal directories.
Click to hide internal directories.