Skip to content

Commit

Permalink
Merge pull request #21 from sundowndev/fix/duckduckgoURL
Browse files Browse the repository at this point in the history
Fix DuckDuckGo search URL
  • Loading branch information
sundowndev authored Mar 4, 2021
2 parents 8d0b63c + c1b124b commit c660219
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion duckduckgo/duckduckgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

const (
searchURL = "https://www.google.com/search"
searchURL = "https://duckduckgo.com/"
siteTag = "site:"
urlTag = "inurl:"
filetypeTag = "filetype:"
Expand Down
2 changes: 1 addition & 1 deletion duckduckgo/duckduckgo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestInit(t *testing.T) {
Site("example.com").
URL()

assert.Equal(result, "https://www.google.com/search?q=site%3Aexample.com", "they should be equal")
assert.Equal(result, "https://duckduckgo.com/?q=site%3Aexample.com", "they should be equal")
})

t.Run("should convert to string correctly", func(t *testing.T) {
Expand Down

0 comments on commit c660219

Please sign in to comment.