annotation-go/types.go

27 lines
607 B
Go
Raw Normal View History

2019-11-13 13:53:42 +00:00
package annotation
2019-11-12 14:58:17 +00:00
import "reflect"
// Annotation is interface
type Annotation interface {
}
// AnnotationType is type of Annotation
2019-11-13 14:19:09 +00:00
var AnnotationType = reflect.TypeOf((*Annotation)(nil)).Elem()
2019-11-12 14:58:17 +00:00
// TypeAnnotation is interface
type TypeAnnotation interface {
Annotation
}
// TypeAnnotationType is type of TypeAnnotation
2019-11-13 14:19:09 +00:00
var TypeAnnotationType = reflect.TypeOf((*TypeAnnotation)(nil)).Elem()
2019-11-12 14:58:17 +00:00
// MethodAnnotation is interface
type MethodAnnotation interface {
Annotation
}
// MethodAnnotationType is type of MethodAnnotation
2019-11-13 14:19:09 +00:00
var MethodAnnotationType = reflect.TypeOf((*MethodAnnotation)(nil)).Elem()