Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BufferedFileWriter ¶
type BufferedFileWriter struct {
// contains filtered or unexported fields
}
func NewBufferedFileWriter ¶
func NewBufferedFileWriter(w *FileWriter) *BufferedFileWriter
func NewBufferedFileWriterSize ¶
func NewBufferedFileWriterSize(w *FileWriter, size int, flush time.Duration) *BufferedFileWriter
func (*BufferedFileWriter) Close ¶
func (bw *BufferedFileWriter) Close() error
func (*BufferedFileWriter) Flush ¶
func (bw *BufferedFileWriter) Flush()
func (*BufferedFileWriter) Reopen ¶
func (bw *BufferedFileWriter) Reopen() error
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
func NewFileWriter ¶
func NewFileWriter(name string) (*FileWriter, error)
func NewFileWriterMode ¶
func NewFileWriterMode(name string, mode os.FileMode) (*FileWriter, error)
func (*FileWriter) Close ¶
func (f *FileWriter) Close() error
func (*FileWriter) Fd ¶
func (f *FileWriter) Fd() uintptr
type WriteCloser ¶
type WriteCloser interface { Reopener io.WriteCloser }
func NopWriter ¶
func NopWriter(w io.Writer) WriteCloser
Click to show internal directories.
Click to hide internal directories.