writer: github.com/uknth/writer Index | Files

package writer

import "github.com/uknth/writer"

Index

Package Files

writer.go

type RotateWriter Uses

type RotateWriter struct {
    // contains filtered or unexported fields
}

func NewWriter Uses

func NewWriter(filename string, timeInSec int) (*RotateWriter, error)

NewWriter makes a new RotateWriter. Return nil if error occurs during setup.

func (*RotateWriter) Close Uses

func (w *RotateWriter) Close() (err error)

func (*RotateWriter) Rotate Uses

func (w *RotateWriter) Rotate() (err error)

Perform the actual act of rotating and reopening file.

func (*RotateWriter) Write Uses

func (w *RotateWriter) Write(output []byte) (int, error)

Write satisfies the io.Writer interface.

Package writer imports 5 packages (graph). Updated 2016-12-22. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).