wc_l

package
v0.0.0-...-208c932 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WordCount

type WordCount struct {
	Word  string
	Count int
}

func (*WordCount) AddCount

func (wc *WordCount) AddCount(val int)

func (*WordCount) Inc

func (wc *WordCount) Inc()

func (*WordCount) String

func (wc *WordCount) String() string

type WordCounts

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

func NewWordCounts

func NewWordCounts() *WordCounts

func (*WordCounts) AddWord

func (wcts *WordCounts) AddWord(word string, count int)

func (*WordCounts) Find

func (wcts *WordCounts) Find(word string) *WordCount

func (*WordCounts) Fprint

func (wcts *WordCounts) Fprint(w io.Writer)

func (*WordCounts) Len

func (wcts *WordCounts) Len() int

data interface

func (*WordCounts) Less

func (wcts *WordCounts) Less(i, j int) bool

func (*WordCounts) Select

func (wcts *WordCounts) Select(i int) *WordCount

func (*WordCounts) Sort

func (wcts *WordCounts) Sort()

func (*WordCounts) Swap

func (wcts *WordCounts) Swap(i, j int)

Jump to

Keyboard shortcuts

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