di/injection/annotation/resource.go

21 lines
296 B
Go
Raw Permalink Normal View History

2018-03-15 13:19:44 +00:00
package annotation
import (
"reflect"
cda "git.loafle.net/commons_go/di/annotation"
)
const (
ResourceTag = "@Resource"
)
func init() {
cda.RegisterAnnotation(ResourceTag, reflect.TypeOf((*Resource)(nil)))
}
type Resource struct {
cda.Annotation
Name string `annotation-meta:"name"`
}