Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages