Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToFile ¶
AppendToFile write s to the end of filename
func OverwriteFile ¶
OverwriteFile truncate filename and write s into it
Types ¶
type FileWriter ¶ added in v0.26.2
FileWriter allows concurrent writes to a file
func (*FileWriter) EnqueueWrite ¶ added in v0.26.2
func (fw *FileWriter) EnqueueWrite(data string) (err error)
EnqueueWrite writes string to the target file
func (*FileWriter) Init ¶ added in v0.26.2
func (fw *FileWriter) Init(path string, queueLength int) (err error)
Init setup the FileWriter
func (*FileWriter) Stop ¶ added in v0.26.2
func (fw *FileWriter) Stop() (err error)
Stop ends the file writer
Click to show internal directories.
Click to hide internal directories.