* feat: kubesphere 4.0 Signed-off-by: ci-bot <ci-bot@kubesphere.io> * feat: kubesphere 4.0 Signed-off-by: ci-bot <ci-bot@kubesphere.io> --------- Signed-off-by: ci-bot <ci-bot@kubesphere.io> Co-authored-by: ks-ci-bot <ks-ci-bot@example.com> Co-authored-by: joyceliu <joyceliu@yunify.com>
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
|
|
}
|
|
}
|