// Register - the function that registers services in container
the function that registers services in container
// Register - the function that registers services in container
func (c *Container) Register(service string, resolver func(c *Container) interface{}) {
	if c.registered[service] != nil {
		c.fatalHanlder("Service with name `%s` already registered in container", service)
		return
	}
	c.registered[service] = resolver
}
func ( c * Container ) Register ( service string , resolver func ( c * Container ) interface { } ) { if c . registered [ service ] != nil { c . fatalHanlder ( " " , service ) return } c . registered [ service ] = resolver }
the function that registers services in container
the function that registers services in container