github.com/vardius/gocontainer (go): Package gocontainer is a simple dependency injection container  Take the following example: First file `main.go` simply gets the repository from the container and prints it we use **MustInvoke** method to simply present the way where we keep type safety  Our database implementation uses `init()` function to register db service  Our repository accesses earlier on registered db service and following the same patter uses `init()` function to register repository service within container  You can disable global container instance by setting gocontainer.GlobalContainer to nil. This package allows you to create many containers.
Keywords: container-registry|dependency-injection|go|golang