20 lines
321 B
Go
20 lines
321 B
Go
package annotation
|
|
|
|
// @Inject(name? string)
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
oa "git.loafle.net/overflow/annotation-go"
|
|
)
|
|
|
|
func init() {
|
|
oa.Register(PreDestroyAnnotationType)
|
|
}
|
|
|
|
var PreDestroyAnnotationType = reflect.TypeOf((*PreDestroyAnnotation)(nil))
|
|
|
|
type PreDestroyAnnotation struct {
|
|
oa.Annotation `@name:"@PreDestroy"`
|
|
}
|