Skip to content

oshvartz/LiteDI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiteDI

Lightweight GO Dependency Injection Framework - did it just for learning (POC)

Build status

Example

type SomeInterface interface {
	Foo()

}
type SomeConcrete struct {

}
func (SomeConcrete foo) Foo() {

}

func main() {
  cb := litedi.CreateContainerBuilder()
	var i SomeInterface
	var c = cb.Register(&i, SomeConcrete{},litedi.Singleton).Build()
	c.Resolve(&i)
	i.Foo()
}

About

Lightweight GO Dependency Injection Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages