Composition Instead of Inheritance - OOP in Go

Welcome to tutorial no. 27 in Golang tutorial series. Go does not support inheritance, however, it does support composition. The generic definition of composition is &ldquo;put together&rdquo;. One example of composition is a car. A car is composed of wheels, an engine and various other parts. Composition by embedding structs Composition can be achieved in Go is by embedding one struct type into…