counter

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringCount

type StringCount struct {
	String string
	Count  int
}

type StringCounter

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

func NewStringCounter

func NewStringCounter() StringCounter

func (*StringCounter) Add

func (c *StringCounter) Add(str string)

func (*StringCounter) AsSortedSlice

func (c *StringCounter) AsSortedSlice() []StringCount

AsSortedSlice returns the counter as a slice sorted by name asc, count asc

type StringSliceCount

type StringSliceCount struct {
	StringSlice []string
	Count       int
}

type StringSliceCounter

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

func NewStringSliceCounter

func NewStringSliceCounter() StringSliceCounter

func (*StringSliceCounter) Add

func (c *StringSliceCounter) Add(slice []string)

func (*StringSliceCounter) AsSortedSlice

func (c *StringSliceCounter) AsSortedSlice() []StringSliceCount

Jump to

Keyboard shortcuts

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