Building Generic Service Container in Go [PART 1]

Walking through the new world of generics in Go.

Finally, Generics are in the house of Go, or are they? Today I’ll be building a very simple service container using Go’s 1.18 generics as an example What are service containers anyway? Service container is a container which stores instances (implementations) of your services (interfaces) so you can retreive/bootstrap them any time you need to. For this post the said definition is enough, but later on next posts I’ll be extending the service container to full fledged dependency injection solution. [Read More]