Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicWrite ¶
AtomicWrite writes data to path atomically using a temp file in the same directory followed by a rename. This ensures that a crash mid-write leaves the existing file intact. If the target file already exists, its permissions are preserved; otherwise 0644 is used.
func AtomicWriteWithPerm ¶
AtomicWriteWithPerm writes data to path atomically using a temp file in the same directory followed by a rename. The perm parameter is the fallback permission used when the target file does not yet exist. If the target file already exists, its current permissions are preserved (H-19).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.