github.com/google/go-cmp/cmp.formatOptions.WithTypeMode (method)
17 uses
github.com/google/go-cmp/cmp (current package)
report_compare.go#L62: func (opts formatOptions) WithTypeMode(t typeMode) formatOptions {
report_compare.go#L138: outx := opts.WithTypeMode(elideType).FormatValue(v.ValueX, parentKind, ptrs)
report_compare.go#L139: outy := opts.WithTypeMode(elideType).FormatValue(v.ValueY, parentKind, ptrs)
report_compare.go#L141: opts2 := verbosityPreset(opts, i).WithTypeMode(elideType)
report_compare.go#L151: return opts.WithTypeMode(emitType).FormatType(v.Type, list)
report_compare.go#L170: out := opts.WithTypeMode(emitType).FormatDiff(v.Value, ptrs)
report_compare.go#L195: out = opts.WithTypeMode(emitType).FormatDiff(v.Value, ptrs)
report_compare.go#L210: opts = opts.WithTypeMode(autoType)
report_compare.go#L214: opts = opts.WithTypeMode(elideType)
report_compare.go#L218: opts = opts.WithTypeMode(elideType)
report_reflect.go#L198: s := opts.WithTypeMode(autoType).FormatValue(vv, t.Kind(), ptrs)
report_reflect.go#L213: return opts.WithTypeMode(emitType).FormatType(t, out)
report_reflect.go#L230: s := opts.WithTypeMode(elideType).FormatValue(v.Index(i), t.Kind(), ptrs)
report_reflect.go#L264: sv := opts.WithTypeMode(elideType).FormatValue(v.MapIndex(k), t.Kind(), ptrs)
report_reflect.go#L296: return opts.WithTypeMode(emitType).FormatValue(v.Elem(), t.Kind(), ptrs)
report_slices.go#L206: opts = opts.WithTypeMode(emitType)
report_slices.go#L289: opts = opts.WithTypeMode(emitType)
 |
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. |