di-go/injection/annotation/inject.go
crusader 52ae4371ce ing
2018-04-07 01:57:25 +09:00

21 lines
374 B
Go

package annotation
// @Inject(name? string)
import (
"reflect"
cda "git.loafle.net/commons/di-go/annotation"
)
var InjectAnnotationType = reflect.TypeOf((*InjectAnnotation)(nil))
func init() {
cda.RegisterAnnotation(InjectAnnotationType)
}
type InjectAnnotation struct {
cda.TypeAnnotation `@annotation:"@Inject"`
Name string `@annotation:"name"`
}