di-go/injection/annotation/resource.go
2018-04-03 18:02:31 +09:00

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