github.com/google/go-cmp/cmp.sliceIndex.xkey (field)
11 uses
github.com/google/go-cmp/cmp (current package)
compare.go#L455: step.vx, step.xkey = vx.Index(ix), ix
compare.go#L457: step.vx, step.xkey = reflect.Value{}, -1
path.go#L212: xkey, ykey int
path.go#L220: case si.xkey == si.ykey:
path.go#L221: return fmt.Sprintf("[%d]", si.xkey)
path.go#L224: return fmt.Sprintf("[%d->?]", si.xkey)
path.go#L225: case si.xkey == -1:
path.go#L230: return fmt.Sprintf("[%d->%d]", si.xkey, si.ykey)
path.go#L236: if si.xkey != si.ykey {
path.go#L239: return si.xkey
path.go#L251: func (si SliceIndex) SplitKeys() (ix, iy int) { return si.xkey, si.ykey }
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |