Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalNamedSaver ¶
type LocalNamedSaver struct {
// contains filtered or unexported fields
}
LocalNamedSaver is a generic saver interface for persisting to/from JSON objects.
func NewLocalNamedSaver ¶
func NewLocalNamedSaver(name string) *LocalNamedSaver
NewLocalNamedSaver creates a new LocalNamedSaver that saves results to the given file name.
func (*LocalNamedSaver) Load ¶
func (ls *LocalNamedSaver) Load(v any) error
Load deserializes previously saved JSON content into the given object.
func (*LocalNamedSaver) Save ¶
func (ls *LocalNamedSaver) Save(v any) error
Save serializes the given object as JSON and saves result.
Click to show internal directories.
Click to hide internal directories.