Adding new type: Minter
This commit is contained in:
@@ -9,3 +9,17 @@ func NewCounter(top, value int) *Counter {
|
||||
c := Counter{top: top, value: value}
|
||||
return &c
|
||||
}
|
||||
|
||||
type Minter struct {
|
||||
oacounter int
|
||||
activeCounters []Counter
|
||||
inactiveCounters []Counter
|
||||
}
|
||||
|
||||
func NewMinter() *Minter {
|
||||
return &Minter{
|
||||
oacounter: 0,
|
||||
activeCounters: make([]Counter, 283),
|
||||
inactiveCounters: make([]Counter),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user