Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 234 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 234 Bytes

DependencyBuilder

Builds dependencies in topological order.

Usage:

builder := dg.New()

// Add dependency type and it's constructor.
dg.AddDep(reflect.TypeOf(dep0{}), dep0Constructor)

// Build dependencies
dg.Build()