Versions in this module Expand all Collapse all v1 v1.0.0 Sep 13, 2024 Changes in this version + var Discard = NopWriter(ioutil.Discard) + var Stderr = NopWriter(os.Stderr) + var Stdout = NopWriter(os.Stdout) + type BufferedFileWriter struct + func NewBufferedFileWriter(w *FileWriter) *BufferedFileWriter + func NewBufferedFileWriterSize(w *FileWriter, size int, flush time.Duration) *BufferedFileWriter + func (bw *BufferedFileWriter) Close() error + func (bw *BufferedFileWriter) Flush() + func (bw *BufferedFileWriter) Reopen() error + func (bw *BufferedFileWriter) Write(p []byte) (int, error) + type FileWriter struct + func NewFileWriter(name string) (*FileWriter, error) + func NewFileWriterMode(name string, mode os.FileMode) (*FileWriter, error) + func (f *FileWriter) Close() error + func (f *FileWriter) Reopen() error + func (f *FileWriter) Write(p []byte) (int, error) + type Reopener interface + Reopen func() error + type WriteCloser interface + func NopWriter(w io.Writer) WriteCloser + type Writer interface + func MultiWriter(writers ...Writer) Writer