Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶ added in v0.0.4
SetLogLevel allows setting the log level for the ansistrip package.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer is a thread-safe, ANSI-aware, buffering io.Writer.
func NewWriter ¶
func NewWriter(downstream io.Writer, inactivityTimeout, forceFlushTimeout time.Duration, maxBufferSize int) *Writer
NewWriter creates and starts a new ANSI-aware buffering Writer. maxBufferSize sets the maximum size of the internal buffer in bytes. If the buffer exceeds this size, a flush is triggered. It also sets the maximum size of any single write to the downstream writer. A value of 0 or less disables this feature.
Click to show internal directories.
Click to hide internal directories.