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