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.
Click to show internal directories.
Click to hide internal directories.