inject icon indicating copy to clipboard operation
inject copied to clipboard

Dependency injection for go

Results 16 inject issues
Sort by recently updated
recently updated
newest added

The current way has 2 disadvantages: 1. If there are 2 objects of the same type to be mapped into injector, the former one will be overwritten by the latter...

it supports injecting multiple same property fields, without changing any functions.

Every exported function in a program should have a doc comment. The first sentence should be a summary that starts with the name being declared. From [effective go](https://golang.org/doc/effective_go.html#commentary). I generated...

Currently, if there're multiple implementations that satisfy the given type, the library will pick the first one silently. This PR addresses that by adding an option PanicOnAmbiguity which, if set...

inspired from #10 provider will be called when the first get and inject the return values check the test suite for a sense of usage

`MapTo(interface{}, interface{}) TypeMapper` is a bit confusing, as nothing tells us which is the value and which is the pointer to interface. Named the parameters in the interface, to clarify...

Is it fine to add codebeat badge to README? codebeat is automated code review tool for Swift, Ruby & Go that helps get instant feedback on code quality. "Quick wins"...

injector using a map stored values, use type in the Get method to obtain value. If there is more value will be lost if the same type value, for example...