Merge pull request #21 from sundowndev/fix/duckduckgoURL

Fix DuckDuckGo search URL
master v1.3.1
Raphaël 2021-03-04 14:35:32 +01:00 committed by GitHub
commit c660219494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import (
)
const (
searchURL = "https://www.google.com/search"
searchURL = "https://duckduckgo.com/"
siteTag = "site:"
urlTag = "inurl:"
filetypeTag = "filetype:"

View File

@ -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) {