diff --git a/metadata.go b/metadata.go index 8c8ec96..770a885 100644 --- a/metadata.go +++ b/metadata.go @@ -31,7 +31,3 @@ func (m *MetadataDecoder) Process() error { return errors.New("not metadata") } - -// CheckRegistry -// Deprecated -func (m *MetadataDecoder) CheckRegistry() (notReg []string) { return } diff --git a/types/registry.go b/types/registry.go index deb9c72..fc01af1 100644 --- a/types/registry.go +++ b/types/registry.go @@ -39,7 +39,19 @@ func HasReg(typeName string) bool { return ok } +// Clean all type registry +func Clean() { + TypeRegistry = nil + specialRegistry = make(map[string][]Special) + V14Types = nil + regBaseType() +} + func init() { + regBaseType() +} + +func regBaseType() { registry := make(map[string]interface{}) scales := []interface{}{ &Null{},