summary

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Goroutinewg *sync.WaitGroup

This is a debugging aid - I use it to ensure goroutines stop as expected. If they don't the main program will hang at termination.

Functions

This section is empty.

Types

type Reader

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

Reader maintains the first two and last two lines read from a source io.Reader. At any point, the Summary() function can be called to extract a summary of what's been read so far. I'm using this to create a summary of the stderr of a termshark command.

func New

func New(source io.Reader) *Reader

func (*Reader) Summary

func (h *Reader) Summary() []string

Jump to

Keyboard shortcuts

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