From a254c5695d3b96e4d6558cab323af37075680b8f Mon Sep 17 00:00:00 2001 From: Richard Park Date: Wed, 13 Nov 2019 23:19:09 +0900 Subject: [PATCH] bug fixed --- types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types.go b/types.go index c2dad7d..e13e006 100644 --- a/types.go +++ b/types.go @@ -7,7 +7,7 @@ type Annotation interface { } // AnnotationType is type of Annotation -var AnnotationType = reflect.TypeOf((*Annotation)(nil)) +var AnnotationType = reflect.TypeOf((*Annotation)(nil)).Elem() // TypeAnnotation is interface type TypeAnnotation interface { @@ -15,7 +15,7 @@ type TypeAnnotation interface { } // TypeAnnotationType is type of TypeAnnotation -var TypeAnnotationType = reflect.TypeOf((*TypeAnnotation)(nil)) +var TypeAnnotationType = reflect.TypeOf((*TypeAnnotation)(nil)).Elem() // MethodAnnotation is interface type MethodAnnotation interface { @@ -23,4 +23,4 @@ type MethodAnnotation interface { } // MethodAnnotationType is type of MethodAnnotation -var MethodAnnotationType = reflect.TypeOf((*MethodAnnotation)(nil)) +var MethodAnnotationType = reflect.TypeOf((*MethodAnnotation)(nil)).Elem()