Documentation ¶
Overview ¶
Package atomicfile defines file operations for safely writing files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File interface { // Name returns the file name. Name() string // Create allocates a new safefile.File that writes to a temporary file. Create(perm os.FileMode) (*safefile.File, error) // Commit closes the underlying temporary file and renames it to the File.Name(). Commit() error }
A File abstracts operations on a temporary file.
Click to show internal directories.
Click to hide internal directories.