Skip to content
/ box Public

a zero dependency performant dependency injection library

License

Notifications You must be signed in to change notification settings

aacebo/box

Repository files navigation

a zero dependency performant dependency injection library

Install

go get github.com/aacebo/box

Usage

b := box.New()
b.Put(&ServiceA{}, &ServiceB{})

fn, err := b.Inject(func (a *ServiceA, b *Service B) {
	fmt.Println(a, b)
})

if err != nil {
	panic(err)
}

fn()

Benchmarks

  • coming soon!

About

a zero dependency performant dependency injection library

Resources

License

Stars

Watchers

Forks

Packages

No packages published