fix: duckduckgo search URL
parent
8d0b63cafe
commit
c1b124bef4
|
@ -6,7 +6,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
searchURL = "https://www.google.com/search"
|
||||
searchURL = "https://duckduckgo.com/"
|
||||
siteTag = "site:"
|
||||
urlTag = "inurl:"
|
||||
filetypeTag = "filetype:"
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue