Files
noid-go/internal/utils.go
T
2026-06-16 21:43:55 +02:00

26 lines
400 B
Go

package noid
type Counter struct {
top int
value int
}
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),
}
}