counter

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func NewCounter

func NewCounter(outw, errw io.Writer, opts *options.Options) *Counter

func (*Counter) Count

func (c *Counter) Count(keys []string) error

func (*Counter) CountAndPrint

func (c *Counter) CountAndPrint(keys []string) error

func (*Counter) Open

func (c *Counter) Open(filename string) (*os.File, error)

func (*Counter) Print

func (c *Counter) Print()

func (*Counter) SetInReader

func (c *Counter) SetInReader(f *os.File)

func (*Counter) SetParser

func (c *Counter) SetParser(parser parsers.Parser)

func (*Counter) Sort

func (c *Counter) Sort()

type PrintOptions

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

func NewPrintOptions

func NewPrintOptions(noHeaders, showFooters bool, paginationLimit int) *PrintOptions

type Printer

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

func NewPrinter

func NewPrinter(w io.Writer, format string, printOptions *PrintOptions) *Printer

func (*Printer) Print

func (p *Printer) Print(groups *groups)

Jump to

Keyboard shortcuts

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