Skip to content

Commit

Permalink
Using go-func for the intersection now.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenBlack committed Apr 27, 2020
1 parent 29adc61 commit a932483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Binary file modified ghosts
Binary file not shown.
6 changes: 2 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (

"github.com/atotto/clipboard"
"github.com/dustin/go-humanize"
"github.com/juliangruber/go-intersect"
"github.com/thoas/go-funk"
)

Expand Down Expand Up @@ -411,8 +410,7 @@ func main() {
fmt.Println(hf2.Summary("Compared hosts file"))
}

intersection := intersect.Hash(hf1.Domains, hf2.Domains)

intersection := funk.IntersectString(hf1.Domains, hf2.Domains)
if intersectionList {
// for now, unceremoniously dump the intersecting domains.
fmt.Println("intersection:", intersection)
Expand All @@ -431,7 +429,7 @@ func main() {
fmt.Println(hf2.Summary("Compared hosts from clipboard"))
}

intersection := intersect.Hash(hf1.Domains, hf2.Domains)
intersection := funk.IntersectString(hf1.Domains, hf2.Domains)

if intersectionList {
// for now, unceremoniously dump the intersecting domains.
Expand Down

0 comments on commit a932483

Please sign in to comment.