Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicWriteFile ¶
AtomicWriteFile writes data out. It writes to a temp file first, fsyncs that file, then swaps the file in. os.Rename is an atomic operation, so this sequence avoids having a partially written file at the final location. Finally, fsync is called on the directory to ensure the rename is persisted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.