di-go/injection/annotation/resource.go
crusader 52ae4371ce ing
2018-04-07 01:57:25 +09:00

19 lines
358 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 `@annotation:"name"`
}