// Get - the function that extracts services from container by its service name
the function that extracts services from container by its service name
// Get - the function that extracts services from container by its service name
func (c *Container) Get(service string) interface{} {
	if c.services[service] != nil {
		return c.services[service]
	}
	if c.registered[service] == nil {
		c.fatalHanlder("Service with name `%s` hasn't registered in container", service)
		return nil
	}
	c.services[service] = c.registered[service](c)
	return c.services[service]
}
func ( c * Container ) Get ( service string ) interface { } { if c . services [ service ] != nil { return c . services [ service ] } if c . registered [ service ] == nil { c . fatalHanlder ( " " , service ) return nil } c . services [ service ] = c . registered [ service ] ( c ) return c . services [ service ] }
the function that extracts services from container by its service name
the function that extracts services from container by its service name