First step to get our Noid minter in Go: a counter struct

This commit is contained in:
2026-06-14 22:50:13 +02:00
parent 2058d91a05
commit 62d70e981a
+11
View File
@@ -0,0 +1,11 @@
package noid
type Counter struct {
top int
value int
}
func NewCounter(top, value int) *Counter {
c := Counter{top: top, value: value}
return &c
}