Documentation
¶
Overview ¶
Package storage provides filesystem utilities for safe, atomic persistence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteAtomic ¶
WriteAtomic writes to path atomically: creates a .tmp sibling, calls write with the temporary file, syncs the file to disk, then renames over path. If write returns an error or any step fails, the .tmp file is removed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.