MCPcopy Create free account
hub / github.com/google/go-cmp / Name

Method Name

cmp/path.go:212–212  ·  view source on GitHub ↗

Name is the field name.

()

Source from the content-addressed store, hash-verified

210
211// Name is the field name.
212func (sf StructField) Name() string { return sf.name }
213
214// Index is the index of the field in the parent struct type.
215// See [reflect.Type.Field].

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected