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 +}