Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSafeFileWriter ¶
func NewSafeFileWriter(f *os.File) io.WriteCloser
NewSafeFileWriter return an io.WriteCloser that wraps around an *os.File. It syncs file changes with the disk when an EOF is reached or the file is closed. It is based on the Sync() function from os.File.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.