MCPcopy
hub / github.com/google/go-cmp / Exporter

Function Exporter

cmp/options.go:416–418  ·  view source on GitHub ↗

Exporter returns an [Option] that specifies whether [Equal] is allowed to introspect into the unexported fields of certain struct types. Users of this option must understand that comparing on unexported fields from external packages is not safe since changes in the internal implementation of some e

(f func(reflect.Type) bool)

Source from the content-addressed store, hash-verified

414// In other cases, the [github.com/google/go-cmp/cmp/cmpopts.IgnoreUnexported]
415// option can be used to ignore all unexported fields on specified struct types.
416func Exporter(f func(reflect.Type) bool) Option {
417 return exporter(f)
418}
419
420type exporter func(reflect.Type) bool
421

Callers

nothing calls this directly

Calls 1

exporterFuncType · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…