json

package
v0.0.0-...-d549e8d Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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