From 62d70e981a406f90f348ef321e73bd0c6d037b0a Mon Sep 17 00:00:00 2001 From: Emmanuel Di Pretoro Date: Sun, 14 Jun 2026 22:50:13 +0200 Subject: [PATCH] First step to get our Noid minter in Go: a counter struct --- internal/utils.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 internal/utils.go diff --git a/internal/utils.go b/internal/utils.go new file mode 100644 index 0000000..5891772 --- /dev/null +++ b/internal/utils.go @@ -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 +}