Example #1
0
File: tree.go Project: cznic/dns
// NewTree returns a newly created Tree.
func NewTree() *Tree {
	return (*Tree)(dns.NewTree())
}
Example #2
0
File: cache.go Project: cznic/dns
// New returns a newly created Cache.
func New() *Cache {
	return &Cache{tree: dns.NewTree(), pending: map[string]bool{}}
}