Ecosyste.ms: Packages

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

Top 6.2% on proxy.golang.org
Top 4.2% dependent packages on proxy.golang.org
Top 1.5% dependent repos on proxy.golang.org

proxy.golang.org : github.com/vardius/gocontainer

Package gocontainer is a simple dependency injection container Take the following example: First file `main.go` simply gets the repository from the container and prints it we use **MustInvoke** method to simply present the way where we keep type safety Our database implementation uses `init()` function to register db service Our repository accesses earlier on registered db service and following the same patter uses `init()` function to register repository service within container You can disable global container instance by setting gocontainer.GlobalContainer to nil. This package allows you to create many containers.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/vardius/gocontainer
Keywords: container-registry, dependency-injection, go, golang
License: MIT
Latest release: almost 5 years ago
First release: almost 5 years ago
Namespace: github.com/vardius
Dependent packages: 2
Dependent repositories: 13
Stars: 18 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/vardius
Last synced: 15 days ago

    Loading...
    Readme
    Loading...