21 lines
296 B
Go
21 lines
296 B
Go
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"`
|
|
}
|