github.com/google/go-cmp/cmp.textRecord.Key (field)
23 uses
github.com/google/go-cmp/cmp (current package)
report_compare.go#L267: list = append(list, textRecord{Key: formatKey(r.Key), Value: out})
report_compare.go#L315: list = append(list, textRecord{Key: formatKey(r.Key), Value: out})
report_compare.go#L327: list = append(list, textRecord{Key: formatKey(r.Key), Value: out})
report_compare.go#L339: list = append(list, textRecord{Key: formatKey(r.Key), Value: out})
report_compare.go#L350: list = append(list, textRecord{Diff: diffRemoved, Key: formatKey(r.Key), Value: outx})
report_compare.go#L354: list = append(list, textRecord{Diff: diffInserted, Key: formatKey(r.Key), Value: outy})
report_compare.go#L359: list = append(list, textRecord{Key: formatKey(r.Key), Value: out})
report_compare.go#L383: strKey := list[i].Key
report_compare.go#L397: list[i].Key = formatMapKey(k, true, ptrs)
report_reflect.go#L199: list = append(list, textRecord{Key: sf.Name, Value: s})
report_reflect.go#L265: list = append(list, textRecord{Key: sk, Value: sv})
report_text.go#L144: Key string // e.g., "MyField"
report_text.go#L170: n += len(r.Key)
report_text.go#L171: if r.Key != "" {
report_text.go#L189: if !(r1.Diff == r2.Diff && r1.Key == r2.Key && r1.Value.Equal(r2.Value) && r1.Comment == r2.Comment) {
report_text.go#L212: b = append(b, r.Key...)
report_text.go#L213: if r.Key != "" {
report_text.go#L242: return r.Key == "" || !isLine
report_text.go#L244: func(r textRecord) int { return utf8.RuneCountInString(r.Key) },
report_text.go#L260: isSimple = r.Diff == 0 && r.Key == "" && isLine && r.Comment == nil
report_text.go#L292: if r.Key != "" {
report_text.go#L293: b = append(b, r.Key+": "...)
 |
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. |