refactor: remove ip tag in google search

pull/18/head
sundowndev 2020-09-12 18:46:53 +02:00
parent e60d1a5c4f
commit 313788473b
2 changed files with 0 additions and 16 deletions

View File

@ -152,12 +152,6 @@ func (e *GoogleSearch) Book(keyword string) *GoogleSearch {
return e
}
// IP finds sites hosted by a specific ip address.
func (e *GoogleSearch) IP(address string) *GoogleSearch {
e.tags = append(e.tags, e.join(ipTag, address, false))
return e
}
// Maps searches for maps related to keywords.
func (e *GoogleSearch) Maps(location string) *GoogleSearch {
e.tags = append(e.tags, e.join(mapsTag, location, false))

View File

@ -186,16 +186,6 @@ func TestInit(t *testing.T) {
assert.Equal("book:\"test\"", result, "they should be equal")
})
t.Run("should use ip tag", func(t *testing.T) {
dork = googlesearch.New()
result := dork.
IP("172.217.19.238").
String()
assert.Equal("ip:172.217.19.238", result, "they should be equal")
})
t.Run("should use maps tag", func(t *testing.T) {
dork = googlesearch.New()