file

package
v0.0.0-...-003e2dc Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PersistenceMethod = "file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FilePersistence

type FilePersistence struct {
	// contains filtered or unexported fields
}

func New

func New(name string, workingDir string) *FilePersistence

New returns a new FilePersistence instance.

func (*FilePersistence) Load

func (f *FilePersistence) Load(i interface{}) error

Load decodes the content of f.filename and writes the result to the given interface.

func (*FilePersistence) Save

func (f *FilePersistence) Save(i interface{}) error

Save encodes the given interface to f.filename.

Jump to

Keyboard shortcuts

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