// NewContainer - the container constructor
the container constructor
// NewContainer - the container constructor
func NewContainer(fatalHanlder func(format string, v ...interface{})) *Container {
	instance := &Container{
		fatalHanlder: fatalHanlder,
		services:     make(map[string]interface{}),
		registered:   make(map[string]func(c *Container) interface{}),
	}
	instance.Register("container.Container", func(c *Container) interface{} {
		return c
	})
	return instance
}
func NewContainer ( fatalHanlder func ( format string , v ... interface { } ) ) * Container { instance := & Container { fatalHanlder : fatalHanlder , services : make ( map [ string ] interface { } ) , registered : make ( map [ string ] func ( c * Container ) interface { } ) , } instance . Register ( " " , func ( c * Container ) interface { } { return c } ) return instance }
the container constructor
the container constructor