mirror of
https://github.com/minoplhy/duckduckgo-images-api.git
synced 2024-11-24 04:26:58 +00:00
syntax highlighting
This commit is contained in:
parent
8bc2c1808d
commit
2cc2b811ed
@ -11,7 +11,7 @@ Import
|
|||||||
# Example Use Cases
|
# Example Use Cases
|
||||||
|
|
||||||
#### Get Search Results
|
#### Get Search Results
|
||||||
```
|
```go
|
||||||
func main() {
|
func main() {
|
||||||
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
|
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
|
||||||
fmt.Print(hunsen.Results)
|
fmt.Print(hunsen.Results)
|
||||||
@ -19,7 +19,7 @@ func main() {
|
|||||||
|
|
||||||
```
|
```
|
||||||
#### Get Search Result Image
|
#### Get Search Result Image
|
||||||
```
|
```go
|
||||||
func main() {
|
func main() {
|
||||||
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
|
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
|
||||||
for _, somtam := range hunsen.Results {
|
for _, somtam := range hunsen.Results {
|
||||||
@ -30,7 +30,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
#### Specific P and S
|
#### Specific P and S
|
||||||
```
|
```go
|
||||||
func main() {
|
func main() {
|
||||||
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck", P: "1", S: "200"})
|
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck", P: "1", S: "200"})
|
||||||
fmt.Print(hunsen.Results)
|
fmt.Print(hunsen.Results)
|
||||||
|
Loading…
Reference in New Issue
Block a user