19 lines
355 B
Go
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"`
|
|
}
|