Mariano Sosto·May 19, 2021Go: How to unit test factory methodsLet’s first clarify what we refer to when saying factory methods. A factory method in Go is a method which creates some object and returns…