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.
Click to show internal directories.
Click to hide internal directories.