fix: duckduckgo search URL

pull/21/head
sundowndev 2021-03-04 14:34:01 +01:00
parent 8d0b63cafe
commit c1b124bef4
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -21,7 +21,7 @@ func TestInit(t *testing.T) {
Site("example.com"). Site("example.com").
URL() 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) { t.Run("should convert to string correctly", func(t *testing.T) {