Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ di-container Public archive

Simpler compile-time dependency injection and a runtime singleton container for go.

License

Notifications You must be signed in to change notification settings

mgnsk/di-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DI container for Go

Simpler compile-time dependency injection and a runtime singleton container for go. Inspired by Wire and Symfony Service Container

Installation: go get github.com/mgnsk/di-container/cmd/initgen

Example

  • $ cd example
  • $ go generate
  • Run the example app using the initializers: $ go run cmd/main.go

It is also possible to use the container dynamically on runtime. In that case it acts like a singleton container.

Releases

No releases published

Packages

No packages published

Languages