From 9508895ed09d04f874c49b798ddc30eac8fecb93 Mon Sep 17 00:00:00 2001 From: Richard Park Date: Wed, 13 Nov 2019 23:08:33 +0900 Subject: [PATCH] ing --- types.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/types.go b/types.go index fa69df5..b8bd66e 100644 --- a/types.go +++ b/types.go @@ -9,9 +9,15 @@ import ( ) func init() { - annotation.Register(ComponentAnnotationType) - annotation.Register(InjectAnnotationType) - annotation.Register(ResourceAnnotationType) + if err := annotation.Register(ComponentAnnotationType); nil != err { + panic(err) + } + if err := annotation.Register(InjectAnnotationType); nil != err { + panic(err) + } + if err := annotation.Register(ResourceAnnotationType); nil != err { + panic(err) + } } var ComponentAnnotationType = reflect.TypeOf((*ComponentAnnotation)(nil))