type github.com/google/go-cmp/cmp.TypeAssertion
7 uses
github.com/google/go-cmp/cmp (current package)
compare.go#L592: s.compareAny(TypeAssertion{&typeAssertion{pathStep{vx.Type(), vx, vy}}})
path.go#L61: _ PathStep = TypeAssertion{}
path.go#L278: type TypeAssertion struct{ *typeAssertion }
path.go#L283: func (ta TypeAssertion) Type() reflect.Type { return ta.typ }
path.go#L284: func (ta TypeAssertion) Values() (vx, vy reflect.Value) { return ta.vx, ta.vy }
path.go#L285: func (ta TypeAssertion) String() string { return fmt.Sprintf(".(%v)", ta.typ) }
report_value.go#L69: case TypeAssertion:
![]() |
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. |