di-go/annotations/inject.go
2019-11-13 22:34:36 +09:00

22 lines
351 B
Go

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