Interfaces
8 lessons
- 01Introduction to InterfacesHow interfaces define behavior and enable polymorphism in Go.
- 02Implicit ImplementationWhy Go doesn't need an 'implements' keyword and how it decouples your code.
- 03Multiple InterfacesHow a single type can implement any number of interfaces in Go.
- 04Naming ParametersImproving interface documentation by naming parameters in method signatures.
- 05Type AssertionsHow to safely access the underlying concrete type of an interface value.
- 06Type SwitchesHandling multiple type assertions concisely using the switch syntax.
- 07Clean InterfacesRules of thumb for designing effective and maintainable interfaces in Go.
- 08Interfaces CheatsheetA quick reference for Go interfaces, type assertions, and clean design principles.