mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
	
	
		
			14 lines
		
	
	
		
			230 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			230 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package application
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"mayfly-go/pkg/ioc"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func InitIoc() {
							 | 
						||
| 
								 | 
							
									ioc.Register(new(containerAppImpl), ioc.WithComponentName("ContainerApp"))
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func GetContainerApp() Container {
							 | 
						||
| 
								 | 
							
									return ioc.Get[Container]("ContainerApp")
							 | 
						||
| 
								 | 
							
								}
							 |