Documentation ¶ Index ¶ func NewWriter(p string) (io.WriteCloser, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewWriter ¶ func NewWriter(p string) (io.WriteCloser, error) NewWriter creates a resilient file writer. It is resistant to incomplete writes due to program crashing or disk filling up by using a temporary file, which is renamed to target file when the writer is closed successfully. Types ¶ This section is empty. Source Files ¶ View all Source files writer.go Click to show internal directories. Click to hide internal directories.