mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-24 07:10: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
|
||
|
}
|
||
|
}
|