Skip to content
/ di Public

Simple Go depency injection container with generics

License

Notifications You must be signed in to change notification settings

pierrre/di

Repository files navigation

DI

Simple Go depency injection container with generics.

Go Reference

Features

  • Set and get services to a container
  • Lazy service instantiation
  • Optional service name
  • Close all initialized services
  • Type safe (uses generics)
  • Detect dependency cycle (error)
  • Service provider (helps to break circular dependencies)
  • Dependency graph

Usage

Example

About

Simple Go depency injection container with generics

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published