From d099a6b36bc31b204328802ae90d4650325127cb Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sat, 23 Jan 2016 10:01:28 -0500 Subject: [PATCH] revert back to a struct --- registry.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/registry.go b/registry.go index cc1e233..26520e8 100644 --- a/registry.go +++ b/registry.go @@ -56,7 +56,9 @@ func (entry DomainEntry) GetEntries(rrClass uint16) []RecordsEntry { } // Registry is a container for looking up DNS records for any request -type Registry map[string]DomainEntry +type Registry struct { + records map[string]DomainEntry +} // NewRegistry will allocate and return a new *Registry func NewRegistry() *Registry {