di-go/annotations/resource.go

19 lines
355 B
Go
Raw Normal View History

2019-11-13 13:34:36 +00:00
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"`
}