do

⚙️ A dependency injection toolkit based on Go 1.18+ Generics.

MIT License

Stars
1.8K

Bot releases are visible (Hide)

do - v2.0.0-beta.7 Latest Release

Published by samber 5 months ago

  • Upgrade go-type-to-string (add support for arrays) - See #79
  • Fix error handling: add a TypeMismatch error when we invoke a service from an unexpected type - See #80
do - v2.0.0-beta.6

Published by samber 5 months ago

  • more tests
  • fix typo in doc
  • adding package abstraction (see doc)
  • fix memory leak for invocation stacktraces
  • shutdown services even if we detect a circular dependency
  • upgrade go-type-to-string (improved interface naming)
  • add support for multple hook handlers
  • add hook at runtime
do -

Published by samber 8 months ago

do - v2.0.0-beta.4

Published by samber 8 months ago

See #45

do -

Published by samber 9 months ago

See #45

do - v2.0.0-beta.2

Published by samber 10 months ago

do - v2.0.0-beta.1

Published by samber 11 months ago

See #45

do - v1.6.0

Published by github-actions[bot] over 1 year ago

Adds injector.ShutdownOnSignals(...) helper that receives a custom list of signals to listen.

do - v1.5.1

Published by github-actions[bot] almost 2 years ago

Fix serviceLazy internal state on shutdown

do - v1.5.0

Published by github-actions[bot] almost 2 years ago

Chore:

  • Remove *_test.go files from releases, in order to clean up dev dependencies
do - v1.4.1

Published by samber about 2 years ago

Fix typo in hooks

do - v1.4.0

Published by samber about 2 years ago

Adding ShutdownOnSIGTERM helper

do - v1.3.0

Published by samber about 2 years ago

Adding Logf(format string, args ...any) hook.

do - v1.2.1

Published by samber about 2 years ago

Cosmetic and doc

do - v1.2.0

Published by samber over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/samber/do/compare/v1.1.0...v1.2.0

do - v1.1.0

Published by samber over 2 years ago

Injector:

  • adding hooks: hookAfterRegistration, hookAfterShutdown
  • service listing
do - v1.0.0

Published by samber over 2 years ago

Initial release 🤘 🚀

Package Rankings
Top 2.05% on Proxy.golang.org
Badges
Extracted from project README
tag GoDoc Go report Coverage License GitHub Sponsors
Related Projects