di-go/annotations/resource.go
2019-11-13 22:34:36 +09:00

19 lines
355 B
Go

package annotations
import (
"reflect"
"git.loafle.net/loafer/annotation-go"
)
var ResourceAnnotationType = reflect.TypeOf((*ResourceAnnotation)(nil))
func init() {
annotation.Register(ResourceAnnotationType)
}
type ResourceAnnotation struct {
annotation.TypeAnnotation `@annotation:"@Resource"`
Name string `json:"name"`
}