Implicit Interface Implementation
In Go, interfaces are implemented implicitly. A type satisfies an interface by simply implementing its methods; there is no 'implements' keyword. This decouples the definition of the interface from its implementation.
package mainimport "fmt"type Describer interface {Describe() string}type Product struct {Name stringPrice float64}func (p Product) Describe() string {return fmt.Sprintf("%s costs $%.2f", p.Name, p.Price)}func main() {var d Describer = Product{Name: "Keyboard", Price: 49.99}fmt.Println(d.Describe())}