Skip to content

Commit

Permalink
Merge pull request #131 from projectdiscovery/update-utils-improvements
Browse files Browse the repository at this point in the history
update utils refactor and improvements
  • Loading branch information
Mzack9999 committed Apr 19, 2023
2 parents 1bc1ce6 + a527059 commit 4878c80
Show file tree
Hide file tree
Showing 6 changed files with 449 additions and 116 deletions.
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

0 comments on commit 4878c80

Please sign in to comment.