di-go/injection/annotation/resource.go
2019-11-11 22:52:10 +09:00

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"`
}