Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter interface {
// Add increments the value for key by delta.
Add(key interface{}, delta int)
// Values returns the counted values.
Values() M
// Diff returns the difference between the counted values and m. A return
// value of nil indicates no difference.
Diff(m M) []Difference
}
Counter adds integers for different keys.
type Difference ¶
Difference represents a mismatch of an actual value and an expected value for a key in a counter.
func (Difference) String ¶
func (d Difference) String() string
Click to show internal directories.
Click to hide internal directories.