Skip to content

atomicfs is a library for atomic file system operations in Go

License

Notifications You must be signed in to change notification settings

cattlecloud/atomicfs

Repository files navigation

atomicfs

A library for atomic filesystem operations in Go.

Go Reference License Build

Overview

The cattlecloud.net/go/atomicfs module provides a package for performing atomic filesystem operations.

Reading material

Getting Started

The atomicfs package can be added to a project with go get.

go get cattlecloud.net/go/atomicfs@latest
import "cattlecloud.net/go/atomicfs"

Examples

writer := atomicfs.NewFileWriter(atomicfs.Options{
    TmpDirectory: "/tmp",
    Mode:         0600,
})

_ = writer.Write(input, output)

Contributing

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.

License

The cattlecloud.net/go/atomicfs module is open source under the BSD-3-Clause license.