Sign in
vanadium
/
release.go.x.ref
/
dc4a7eaf38bc8e47f5a90e7e7bfb313f0d65c7a0
/
.
/
services
/
mgmt
/
node
/
impl
/
counter.go
blob: e70f4bfd30f3cdc507a9cf0c811d57b65153a06d [
file
] [
log
] [
blame
]
package impl
import "strconv"
// counter is a closure used for generating unique identifiers.
func counter() func() string {
var n int = 0
return func() string {
n++
return strconv.Itoa(n)
}
}