Go Interfaces

Use when defining or implementing Go interfaces, composing types through embedding, designing dependency-injection seams, or deciding between pointer and value receivers. Apply proactively whenever a new abstraction is introduced or a constructor returns an abstract type, even if the user has not asked about interfaces. Does not cover generics (see go-generics).

muratmirgun 9878faa 5 files · 21.4 KB Updated

File contents

muratmirgun/gophers/tree/main/skills/go-interfaces commit 9878faa5f4

Frequently asked questions

npx skillmds@latest add muratmirgun/go-interfaces