Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteFileAtomic ¶
WriteFileAtomic writes data to dir/name atomically using a temp file and rename. This ensures readers never observe a partially-written file. Both the file contents and the rename are fsynced, so the write survives a host power loss and not merely a process crash.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.