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)