github.com/google/go-cmp/cmp.Path.Index (method)
7 uses
github.com/google/go-cmp/cmp (current package)
options.go#L230: if t := s.curPath.Index(-2).Type(); t.Name() != "" {
path.go#L76: return pa.Index(-1)
path.go#L83: func (pa Path) Index(i int) PathStep {
github.com/google/go-cmp/cmp/cmpopts
ignore.go#L138: sf, ok := p.Index(-1).(cmp.StructField)
ignore.go#L142: return xf.m[p.Index(-2).Type()] && !isExported(sf.Name())
ignore.go#L161: si, ok := p.Index(-1).(cmp.SliceIndex)
ignore.go#L189: mi, ok := p.Index(-1).(cmp.MapIndex)
![]() |
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. |