Documentation ¶
Overview ¶
Package localstore is a helper for persistent JSON storage on the users machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDir ¶
DefaultDir returns the default local updater storage directory given an appID.
func LoadJSONFile ¶
LoadJSONFile unmarshals file contents from the given file path into a generic object. data cannot be nil. errors.Is(err, os.ErrNotExist) will return true if file doesn't exist.
func StoreJSONFile ¶
StoreJSONFile marshals data from the given object into file with given path. File and directory tree will be created if they do not exist. data cannot be nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.