Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update utils refactor and improvements #131

Merged
merged 9 commits into from
Apr 19, 2023
3 changes: 1 addition & 2 deletions maps/mapsutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"time"

"github.com/miekg/dns"
"golang.org/x/exp/maps"
extmaps "golang.org/x/exp/maps"
)

Expand Down Expand Up @@ -229,7 +228,7 @@ func Walk(m map[string]any, callback func(k string, v any)) {
// Clear the map passed as parameter
func Clear[K comparable, V any](mm ...map[K]V) {
for _, m := range mm {
maps.Clear(m)
extmaps.Clear(m)
}
}

Expand Down
Loading