Documentation
¶
Overview ¶
Package util has various utilities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAtomicWriteFile ¶
func NewAtomicWriteFile(filename string) (io.WriteCloser, error)
NewAtomicWriteFile will return a writer which will create a temporary file based on the given filename; which when Close()'ed will be renamed to the given filename. This allows "atomic" update to a file from the perspective of other readers: any open will either get the old file, or the new file in their completion.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.