MCPcopy Create free account
hub / github.com/DoNewsCode/core / Populate

Method Populate

contract/di.go:9–9  ·  view source on GitHub ↗

Populate is just another way of fetching dependencies from container. It accepts a ptr to target, and populates the target from the container.

(target interface{})

Source from the content-addressed store, hash-verified

7 // Populate is just another way of fetching dependencies from container. It
8 // accepts a ptr to target, and populates the target from the container.
9 Populate(target interface{}) error
10}

Callers 7

AddModuleMethod · 0.65
TestIntoPopulatorFunction · 0.65
newManagerFunction · 0.65
PopulateMethod · 0.65
newClientFunction · 0.65
PopulateMethod · 0.65
newDefaultDriverFunction · 0.65

Implementers 4

defaultPopulatordi/populator.go
Populatorots3/dependency_test.go
Populatorotes/dependency_test.go
mockPopulatorleader/dependency_test.go

Calls

no outgoing calls

Tested by 3

TestIntoPopulatorFunction · 0.52
PopulateMethod · 0.52
PopulateMethod · 0.52