From e9205cada3dd440b9c22bf9d34b54db7d3e5bb0e Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 22 Aug 2018 19:15:12 +0900 Subject: [PATCH] ing --- registry.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/registry.go b/registry.go index af00d28..93dabb3 100644 --- a/registry.go +++ b/registry.go @@ -14,11 +14,6 @@ type Registry interface { Get(f *reflect.StructField) (map[reflect.Type]Annotation, error) } -var SystemRegistry = &AnnotationRegistry{ - parent: nil, - definitions: make(map[string]*Definition, 0), -} - func New(parent Registry) Registry { r := &AnnotationRegistry{ parent: parent, @@ -30,6 +25,11 @@ func New(parent Registry) Registry { return r } +var SystemRegistry = &AnnotationRegistry{ + parent: nil, + definitions: make(map[string]*Definition, 0), +} + type AnnotationRegistry struct { parent Registry definitions map[string]*Definition