di/injection/annotation/resource.go
crusader 1a82266014 ing
2018-03-15 22:19:44 +09:00

21 lines
296 B
Go

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