github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/util/id/id.go (about) 1 package id 2 3 import "sync/atomic" 4 5 type ID int64 6 7 func (g *ID) Next() int64 { 8 return atomic.AddInt64((*int64)(g), 1) 9 }