21 lines
369 B
Go
21 lines
369 B
Go
package annotation
|
|
|
|
// @Inject(name? string)
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
oa "git.loafle.net/overflow/annotation-go"
|
|
)
|
|
|
|
func init() {
|
|
oa.Register(InjectableAnnotationType)
|
|
}
|
|
|
|
var InjectableAnnotationType = reflect.TypeOf((*InjectableAnnotation)(nil))
|
|
|
|
type InjectableAnnotation struct {
|
|
oa.Annotation `@name:"@Injectable"`
|
|
Name string `json:"name" @default:""`
|
|
}
|