Documentation
¶
Index ¶
Constants ¶
View Source
const (
PersistenceMethod = "json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonPersistence ¶
type JsonPersistence struct {
// contains filtered or unexported fields
}
func New ¶
func New(name string, workingDir string) *JsonPersistence
New returns a new JsonPersistence instance.
func (*JsonPersistence) Load ¶
func (f *JsonPersistence) Load(i interface{}) error
Load decodes the content of f.filename and writes the result to the given interface.
func (*JsonPersistence) Save ¶
func (f *JsonPersistence) Save(i interface{}) error
Save encodes the given interface to f.filename.
Click to show internal directories.
Click to hide internal directories.