Documentation ¶
Overview ¶
Package atomicfile provides the ability to write a file with an eventual rename on Close. This allows for a file to always be in a consistent state and never represent an in-progress write.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
File behaves like os.File, but does an atomic rename operation at Close.
func New ¶
New creates a new temporary file that will replace the file at the given path when Closed.
Click to show internal directories.
Click to hide internal directories.