Design Pattern: Factory Pattern in Go
We use the Factory pattern to generate object, when we don’t want to instantiate the object directly. Factory generates the desired object based on the selected criteria. In this article we are exploring the implementation of Factory pattern in Golang.