container icon indicating copy to clipboard operation
container copied to clipboard

A lightweight yet powerful IoC dependency injection container for the Go programming language

Results 8 container issues
Sort by recently updated
recently updated
newest added

This PR makes singleton construction lazy. It also adds a lock to each container binding so that multiple goroutines can safely work with the container at the same time. This...

not work if i add go.work file with inner dependencies

### Description Singleton resolvers that return error during resolution should not cache the concrete instance ### Steps to Reproduce Given the following Go struct ```go type Foo struct { Value...

close Calls the close method on all singleton instances within the container.

Hi! First of all, thank your hard work and for this excellent container! I've added support for instances resolving by an interface, even if they were bound as structs. We...

Is there a way to resolve multiple items by its common interface? Example: IPlugin abstract PluginA concrete PluginB concrete register both plugins by IPlugin resolve []IPlugin where both plugins will...

It will be nice to be able to register and access container bindings asynchronously (e.g. registration of some new binding during application run while some another parts of app resolves...

A feature that would be extremely useful would be extremely useful would be to support the creation of child or cloned containers. A child container is more complex, being an...