annotation-go/types.go

35 lines
811 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
2019-12-02 12:41:47 +00:00
// FieldAnnotation is interface
type FieldAnnotation interface {
Annotation
}
// FieldAnnotationType is type of FieldAnnotation
var FieldAnnotationType = reflect.TypeOf((*FieldAnnotation)(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()