MCPcopy Create free account
hub / github.com/creasty/defaults / methodShadows

Struct methodShadows

method_test.go:43–43  ·  view source on GitHub ↗

methodShadows declares its own over the one it would take from its field, and calls through to it, as a type that means to add to an embedded method does.

Source from the content-addressed store, hash-verified

41// methodShadows declares its own over the one it would take from its field, and calls through to it,
42// as a type that means to add to an embedded method does.
43type methodShadows struct{ methodValue }
44
45func (s methodShadows) Ping() { s.methodValue.Ping() }
46

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected