Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AtomicWrite ¶
type AtomicWrite struct {
// contains filtered or unexported fields
}
AtomicWrite atomically writes files by using a temp file. When Close is called the temp file is closed and moved to its final destination.
func NewAtomicWrite ¶
func NewAtomicWrite(dst string) *AtomicWrite
func (*AtomicWrite) Close ¶
func (a *AtomicWrite) Close() error
Close closes the temporary file and moves to the destination
Click to show internal directories.
Click to hide internal directories.