Documentation ¶
Overview ¶
Package jsonio contains I/O functions for persisting data with json.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadMessage ¶
ReadMessage reads a json-encoded value from fname, and unmarshalls it into v.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store represents a persistent json message store.
func NewStore ¶
NewStore returns a new Store instance. It will create dir if needed.
func (*Store) Get ¶
Get a message from the store.
func (*Store) Put ¶
Put a message into the store.
Click to show internal directories.
Click to hide internal directories.