Documentation ¶
Index ¶
- type WordCount
- type WordCounts
- func (wcts *WordCounts) AddWord(word string, count int)
- func (wcts *WordCounts) Find(word string) *WordCount
- func (wcts *WordCounts) Fprint(w io.Writer)
- func (wcts *WordCounts) Len() int
- func (wcts *WordCounts) Less(i, j int) bool
- func (wcts *WordCounts) Select(i int) *WordCount
- func (wcts *WordCounts) Sort()
- func (wcts *WordCounts) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.