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

Struct methodEmbedsPointerReceiver

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

methodEmbedsPointerReceiver embeds a value whose method has a pointer receiver, so the method is in the embedding pointer's set alone.

Source from the content-addressed store, hash-verified

31// methodEmbedsPointerReceiver embeds a value whose method has a pointer receiver, so the method is in
32// the embedding pointer's set alone.
33type methodEmbedsPointerReceiver struct{ methodPointer }
34
35// methodEmbedsPointerField embeds a pointer, and takes the method through it.
36type methodEmbedsPointerField struct{ *methodValue }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected