counter

package
v0.0.0-...-5948a14 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineCounter

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

LineCounter holds counts for lines

func (*LineCounter) N

func (c *LineCounter) N() int

N returns the number of lines counted

func (*LineCounter) String

func (c *LineCounter) String() string

func (*LineCounter) Write

func (c *LineCounter) Write(p []byte) (n int, err error)

type WordCounter

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

WordCounter counts words

func (*WordCounter) N

func (c *WordCounter) N() int

N returns the count for words

func (*WordCounter) String

func (c *WordCounter) String() string

func (*WordCounter) Write

func (c *WordCounter) 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