Usage examples in README

pull/3/head
Raphaël 2020-02-27 14:06:10 +01:00 committed by GitHub
parent c500ff31d7
commit 896adac410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -91,6 +91,14 @@ dork.
#### URL conversion
```go
dork.Site("facebook.*").Exclude("site:facebook.com").ToURL()
dork.
Site("facebook.*").
Exclude((&dorkgen.GoogleSearch{}).
Site("facebook.com").
ToString())
dork.ToString()
// returns: site:facebook.* -site:facebook.com
dork.ToURL()
// returns: https://www.google.com/search?q=site%3A"facebook.*"+-site%3Afacebook.com
```