Documentation
¶
Overview ¶
Package atomicfile writes files atomically. Content goes to a temporary file in the target directory, which replaces the target on Commit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
File is a temporary file that replaces the file at its target path when committed.
func Create ¶
Create creates a temporary file next to path. Call Commit to move it into place. Close without Commit removes the temporary file, so a deferred Close cleans up on error.
Click to show internal directories.
Click to hide internal directories.