Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicWriteFile ¶
AtomicWriteFile safely replaces a file using a temporary file and an atomic rename.
The temporary file is created in the destination directory to ensure the rename operation is atomic on the same filesystem.
On success, the destination file is either completely replaced or left untouched if an error occurs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.