Registry / utility / storezhang-dig

storezhang-dig

JSON →
library0.0.1gogounverified

A dependency injection container for Go that provides an opinionated way of resolving object dependencies using constructors and parameter objects.

go get github.com/storezhang/dig
INSTALL
IMPORT
SIG · STOREZHANG-DIG
S
storezhang-dig
utilitygov0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dig
github.com/storezhang/dig

Create a container, provide a value, and invoke a function

package main import "github.com/storezhang/dig" func main() { c := dig.New() c.Provide(func() string { return "Hello" }) c.Invoke(func(s string) { println(s) }) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
storezhang-dig — go get storezhang-dig · libregistry