Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFile ¶
NewFile creates a new storage that will be saved to a disk file. This storage truncates the file every time it saves. Be sure to not use multiple instances of a file storage on the same file. Instead, reuse the same Storage across multiple clients. Read operations are very cheap, since they are done in-memory and kept up to date with the writes. Write operations are slower, though, because every time a save operation is performed, it will truncate the file and write all again.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.