MCPcopy Create free account
hub / github.com/google/go-cmp / Key

Method Key

cmp/path.go:246–251  ·  view source on GitHub ↗

Key is the index key; it may return -1 if in a split state

()

Source from the content-addressed store, hash-verified

244
245// Key is the index key; it may return -1 if in a split state
246func (si SliceIndex) Key() int {
247 if si.xkey != si.ykey {
248 return -1
249 }
250 return si.xkey
251}
252
253// SplitKeys are the indexes for indexing into slices in the
254// x and y values, respectively. These indexes may differ due to the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected