file_storage

package
v0.0.0-...-2b9f82a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (*FileStorage) Load

func (s *FileStorage) Load(filename string) ([]byte, error)

func (*FileStorage) Save

func (s *FileStorage) Save(filename string, content []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL