Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteFile ¶
WriteFile writes data to path atomically (best-effort cross-platform).
It writes to a temporary file in the same directory and renames it into place. This avoids torn writes if the process crashes mid-write.
perm is used for the temp file. If perm is 0, WriteFile will try to preserve the existing file's mode (if it exists) and otherwise falls back to 0644.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.