di-go/injection/annotation/resource.go

21 lines
296 B
Go
Raw Normal View History

2018-04-03 09:02:31 +00:00
package annotation
import (
"reflect"
cda "git.loafle.net/commons/di-go/annotation"
)
const (
ResourceTag = "@Resource"
)
func init() {
cda.RegisterAnnotation(ResourceTag, reflect.TypeOf((*Resource)(nil)))
}
type Resource struct {
cda.Annotation
Name string `annotation-meta:"name"`
}