This has moved to https://github.com/kjk/common (atomicfile
)
A Go library to help create files atomically.
The file is created only if all writes succeeded.
To learn how to use it:
- tutorial: https://blog.kowalczyk.info/article/90f01e0e24924f6c8ed428f065c0016a/atomicfile-robustly-writing-to-a-file-in-go.html
- api docs: ttps://pkg.go.dev/github.com/kjk/atomicfile