Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/bongnv/injector

Package injector provides a reflect-based injection solution where each dependency is identified by an unique name. A large application built with dependency injection in mind find difficulties in managing and injecting dependencies. This library attempts to take care of it by containing all dependencies in a central container and injecting requested dependencies automatically. Its use is simple that you use Component method to register a dependency. The library will search for tagged fields and try to inject requested dependencies. It works using Go's reflection package and is inherently limited in what it can do as opposed to a code-gen system with respect to private fields. The usage pattern for the library involves struct tags. It requires the tag format used by the various standard libraries, like json, xml etc. It involves tags in one of the form below: The above form is asking for a named dependency called "logger".

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/bongnv/injector
Keywords: dependecy-injection, go, golang, injection, injector
License: MIT
Latest release: almost 3 years ago
First release: almost 3 years ago
Namespace: github.com/bongnv
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 18 days ago

    Loading...
    Readme
    Loading...