di-go/annotation/injectable.go

21 lines
369 B
Go
Raw Permalink Normal View History

2018-08-23 08:06:25 +00:00
package annotation
// @Inject(name? string)
import (
"reflect"
oa "git.loafle.net/overflow/annotation-go"
)
func init() {
oa.Register(InjectableAnnotationType)
}
var InjectableAnnotationType = reflect.TypeOf((*InjectableAnnotation)(nil))
type InjectableAnnotation struct {
oa.Annotation `@name:"@Injectable"`
2018-09-04 06:12:06 +00:00
Name string `json:"name" @default:""`
2018-08-23 08:06:25 +00:00
}