Documentation ¶ Index ¶ func AtomicWrite(path string, data []byte, perm os.FileMode) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AtomicWrite ¶ func AtomicWrite(path string, data []byte, perm os.FileMode) error AtomicWrite writes data to a temp file in the same directory as path, then atomically renames it to the target. This prevents partial writes from corrupting the target file on crash or power loss. Types ¶ This section is empty. Source Files ¶ View all Source files atomic.go Click to show internal directories. Click to hide internal directories.