mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 10:20:20 +00:00
10 lines
151 B
Go
10 lines
151 B
Go
|
package internal
|
||
|
|
||
|
func MakeIncrementingIndexCounter() func() (int, error) {
|
||
|
idx := -1
|
||
|
return func() (int, error) {
|
||
|
idx += 1
|
||
|
return idx, nil
|
||
|
}
|
||
|
}
|