Package atomicfile provides the ability to write a file with an eventual rename on Close (using os.Rename). This allows for a file to always be in a consistent state and never represent an in-progress write.
NOTE: `os.Rename` may not be atomic on your operating system.
File behaves like os.File, but does an atomic rename operation at Close.
New creates a new temporary file that will replace the file at the given path when Closed.
Abort closes the file and removes it instead of replacing the configured file. This is useful if after starting to write to the file you decide you don't want it anymore.
Close the file replacing the configured file.