Documentation ¶ Index ¶ func NewSyncFileWriter(file *os.File) io.Writer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewSyncFileWriter ¶ added in v0.6.0 func NewSyncFileWriter(file *os.File) io.Writer NewSyncFileWriter returns an io.Writer that is backed by an os.File and that synchronizes the writes to the file. This is suitable for use with non-threadsafe writers, e.g. os.Stdout. Types ¶ This section is empty. Source Files ¶ View all Source files sync_file_writer.go Click to show internal directories. Click to hide internal directories.