Adding more attribute to the Minter struct and reformating
This commit is contained in:
+5
-3
@@ -14,6 +14,9 @@ type Minter struct {
|
|||||||
oacounter int
|
oacounter int
|
||||||
activeCounters []Counter
|
activeCounters []Counter
|
||||||
inactiveCounters []Counter
|
inactiveCounters []Counter
|
||||||
|
total int
|
||||||
|
prefix string
|
||||||
|
mask string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Minter) Mint() string {
|
func (m *Minter) Mint() string {
|
||||||
@@ -22,9 +25,8 @@ func (m *Minter) Mint() string {
|
|||||||
|
|
||||||
func NewMinter() *Minter {
|
func NewMinter() *Minter {
|
||||||
return &Minter{
|
return &Minter{
|
||||||
oacounter: 0,
|
oacounter: 0,
|
||||||
activeCounters: make([]Counter, 283),
|
activeCounters: make([]Counter, 283),
|
||||||
inactiveCounters: make([]Counter),
|
inactiveCounters: make([]Counter),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user