Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCounterHasBeenExhausted = errors.New("counter has been exhausted")
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func MakeCounter ¶
MakeCounter create a counter
The upper limit of Counter determined by the max parameter, which is the maximum value of the top line int64 if set to a number less than or equal to 0.
Click to show internal directories.
Click to hide internal directories.