Documentation
¶
Index ¶
- Variables
- func FailOnError(err error, message string, args ...interface{})
- func Min[T constraints.Ordered](a T, b T) T
- type FreqMap
- func (r FreqMap[K, V]) Add(key K)
- func (r FreqMap[K, V]) AscSorted() PairList[K, V]
- func (r FreqMap[K, V]) Count(key K) (V, bool)
- func (r FreqMap[K, V]) DecSorted() PairList[K, V]
- func (r FreqMap[K, V]) Len() int
- func (r FreqMap[K, V]) Pairs() PairList[K, V]
- func (r FreqMap[K, V]) Top(count int) PairList[K, V]
- type Pair
- type PairList
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = goenvtostruct.GetConfigFromEnv[config]()
Functions ¶
func FailOnError ¶
func Min ¶
func Min[T constraints.Ordered](a T, b T) T
Types ¶
type FreqMap ¶
type FreqMap[K comparable, V constraints.Integer] map[K]V
func NewFreqMap ¶
func NewFreqMap[K comparable, V constraints.Integer]() FreqMap[K, V]
type Pair ¶
type Pair[K comparable, V constraints.Integer] struct { Key K Value V }
Click to show internal directories.
Click to hide internal directories.