Sarulabs Di Versions Save

Dependency injection container in go (golang)

v2.4.2

3 years ago

Also use %+v to print errors in when panic are recovered.

v2.4.1

3 years ago

Use %+v to print errors (instead of %s) to include things like stack traces if the type of the error supports it.

v2.4.0

4 years ago

v2.3.0

4 years ago

Add unshared objects.

v2.2.0

4 years ago

It is now possible to override a service in the Builder.

v2.1.2

4 years ago

This release fixes two bugs :

  • The objects were closed in a random order. It was possible to have an object with a closed dependency. The objects are now closed in the right order. The dependencies are closed after the objects using them.
  • The second bug was created in the last release. The Close function could be called on an object that was being built. In this case it was not possible to cast the object given to the Close function.

v2.1.1

4 years ago

Two requests could build the same object in the app scope. The first one was used by the first request, while the second one was used by all the other requests. The first one was forgotten and never closed. It could happen if the first two Get calls were done at the same time or/and if the Build function took some time to be executed.

v2.1.0

5 years ago
  • put back tags in service definitions
  • add support for go modules

v2.0.0

5 years ago

This new version improves error handling. It should also be faster. Migrating to v2 is highly recommended and should not be too difficult. There should not be any more changes in the API for a long time.

See the README file for the migration instructions: https://github.com/sarulabs/di#migration-from-v1

v1.4.0

5 years ago

The Context is still available as an alias. It will be removed in a possible v2.