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