Package Usage: go: github.com/creachadair/atomicfile
Package atomicfile implements all-or-nothing file replacement by staging
output to a temporary file adjacent to the target, and renaming over the
target when the temporary is closed.
If (and only if) the implementation of rename is atomic the replacement is
also atomic. Since IEEE Std 1003.1 requires rename to be atomic, this is
ordinarily true on POSIX-compatible filesystems.
15 versions
Latest release: over 1 year ago
296 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/creachadair/atomicfile