A library for atomic filesystem operations in Go.
The cattlecloud.net/go/atomicfs
module provides a package for performing atomic
filesystem operations.
The atomicfs
package can be added to a project with go get
.
go get cattlecloud.net/go/atomicfs@latest
import "cattlecloud.net/go/atomicfs"
writer := atomicfs.NewFileWriter(atomicfs.Options{
TmpDirectory: "/tmp",
Mode: 0600,
})
_ = writer.Write(input, output)
The cattlecloud.net/go/atomicfs
module is always improving with new features and
error corrections. For contributing bug fixes and new features please file an
issue.
The cattlecloud.net/go/atomicfs
module is open source under the BSD-3-Clause
license.