refactor: remove ip tag in google search
parent
e60d1a5c4f
commit
313788473b
|
@ -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))
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue