errorfinder

package
v2.40.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorFinder

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

ErrorFinder parses the data coming via the `Write` method and keeps the latest "red" block (that matches \x1b[31;1m control sequence) and hands over tha data to the wrapped `io.Writer` instance.

func NewErrorFinder

func NewErrorFinder(writer io.Writer) *ErrorFinder

NewErrorFinder ...

func (*ErrorFinder) Close

func (e *ErrorFinder) Close() error

func (*ErrorFinder) ErrorMessages

func (e *ErrorFinder) ErrorMessages() []string

ErrorMessages returns the collected error messages. Close needs to be called before using this function to drain the internal error buffer and get all the error messages.

func (*ErrorFinder) Write

func (e *ErrorFinder) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL