github.com/sashka/atomicfile (go): Package atomicfile wraps os.File to allow atomic file updates.  All writes will go to a temporary file. Close the file when you are done writing to atomically make the changes visible. Abort to discard all your writes. This allows a file to be in a consistent state and never expose an in-progress write.
Keywords: atomic|go|golang