di-go/annotation/injectable.go
crusader 93072d1a5e ing
2018-09-04 15:12:06 +09:00

21 lines
369 B
Go

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"`
Name string `json:"name" @default:""`
}