Documentation
¶
Overview ¶
Package memorystore provides read and write access to memory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
MemoryStore represents a file in memory.
func (*MemoryStore) Initalize ¶
func (s *MemoryStore) Initalize(content string)
Initalize sets the initial content if it's empty.
func (*MemoryStore) Load ¶
func (s *MemoryStore) Load() ([]byte, error)
Load returns a file contents from the filesystem.
func (*MemoryStore) Save ¶
func (s *MemoryStore) Save(b []byte) error
Save writes a file to the filesystem and returns an error if one occurs.
Click to show internal directories.
Click to hide internal directories.