inject
inject copied to clipboard
Add an example, and name some confusing parameters
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 it.
Also added an example, visible there: https://godoc.org/github.com/hectorj/inject#example-Injector