1package launchpad
23// Counter manages unique incrementing IDs.4type Counter struct{5 id int646}78// NewCounter creates a new Counter starting at zero.9//10// Returns:11// - counter: counter initialized with current ID zero.12funcNewCounter()*Counter {13return&Counter{14 id:0,15}16}1718// Next increments the counter and returns the next unique ID.19//20// Returns:21// - id: incremented counter value.22func(c *Counter)Next()int64{23 c.id++2425return c.id
26}2728// Get returns the current counter ID without incrementing it.29//30// Returns:31// - id: current counter value.32func(c *Counter)Get()int64{33return c.id
34}35