Documentation ¶
Overview ¶
Package atomic provides atomic file write semantics by leveraging Rename's() atomicity.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
File container provided for atomic file writes
func FileCreate ¶
FileCreate creates a new file at filePath for atomic writes, it also creates parent directories if they don't exist
func (*File) CloseAndPurge ¶
CloseAndPurge removes the temp file, closes the transaction and returns an error if any
Click to show internal directories.
Click to hide internal directories.