di-go/injection/annotation/inject.go

23 lines
312 B
Go
Raw Normal View History

2018-04-03 09:02:31 +00:00
package annotation
// @Inject(name? string)
import (
"reflect"
cda "git.loafle.net/commons/di-go/annotation"
)
const (
InjectTag = "@Inject"
)
func init() {
cda.RegisterAnnotation(InjectTag, reflect.TypeOf((*Inject)(nil)))
}
type Inject struct {
cda.Annotation
Name string `annotation-meta:"name"`
}