atomicwriter

package
v1.4.6-1370 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAtomicWriter

func NewAtomicWriter(path string, permissions os.FileMode) io.WriteCloser

NewAtomicWriter provides a simple atomic file writer which implements the io.WriteCloser interface. This allows us to use the atomic writer the way we would use any other Writer, such as a Buffer. Additonally, this struct takes the file path during construction, so the code which calls `Write()` doesn't need to be concerned with the destination, just like any other writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL