di/injection/annotation/inject.go
crusader 1a82266014 ing
2018-03-15 22:19:44 +09:00

23 lines
312 B
Go

package annotation
// @Inject(name? string)
import (
"reflect"
cda "git.loafle.net/commons_go/di/annotation"
)
const (
InjectTag = "@Inject"
)
func init() {
cda.RegisterAnnotation(InjectTag, reflect.TypeOf((*Inject)(nil)))
}
type Inject struct {
cda.Annotation
Name string `annotation-meta:"name"`
}