Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataManager ¶
type DataManager interface { Load(file string) ([]byte, error) Store(file string, data any) error LoadTempFile(file string) ([]byte, error) StoreTempFile(file string, data any) error }
func New ¶
func New(fs embed.FS, options ...DataOption) DataManager
type DataOption ¶
type DataOption func(*dataManagerImpl)
func WithFsDir ¶
func WithFsDir(fsDir string) DataOption
func WithTempDir ¶
func WithTempDir(tempDir string) DataOption
Click to show internal directories.
Click to hide internal directories.