37 lines
573 B
Go
37 lines
573 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
|
|
total int
|
|
prefix string
|
|
mask string
|
|
}
|
|
|
|
func (m *Minter) initCounters() {
|
|
return
|
|
}
|
|
|
|
func (m *Minter) Mint() string {
|
|
return ""
|
|
}
|
|
|
|
func NewMinter() *Minter {
|
|
return &Minter{
|
|
oacounter: 0,
|
|
activeCounters: make([]Counter, 283),
|
|
inactiveCounters: make([]Counter),
|
|
}
|
|
}
|