19 lines
		
	
	
		
			347 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			347 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package annotation
 | |
| 
 | |
| import (
 | |
| 	"reflect"
 | |
| 
 | |
| 	cda "git.loafle.net/commons/di-go/annotation"
 | |
| )
 | |
| 
 | |
| var ResourceAnnotationType = reflect.TypeOf((*ResourceAnnotation)(nil))
 | |
| 
 | |
| func init() {
 | |
| 	cda.RegisterAnnotation(ResourceAnnotationType)
 | |
| }
 | |
| 
 | |
| type ResourceAnnotation struct {
 | |
| 	cda.TypeAnnotation `@annotation:"@Resource"`
 | |
| 	Name               string `:"name"`
 | |
| }
 |