annotation-go/types.go
2019-11-13 23:19:09 +09:00

27 lines
607 B
Go

package annotation
import "reflect"
// Annotation is interface
type Annotation interface {
}
// AnnotationType is type of Annotation
var AnnotationType = reflect.TypeOf((*Annotation)(nil)).Elem()
// TypeAnnotation is interface
type TypeAnnotation interface {
Annotation
}
// TypeAnnotationType is type of TypeAnnotation
var TypeAnnotationType = reflect.TypeOf((*TypeAnnotation)(nil)).Elem()
// MethodAnnotation is interface
type MethodAnnotation interface {
Annotation
}
// MethodAnnotationType is type of MethodAnnotation
var MethodAnnotationType = reflect.TypeOf((*MethodAnnotation)(nil)).Elem()