https://github.com/thecreeper/go-ddg
Package ddg provides an interface to the DuckDuckGo API.
https://github.com/thecreeper/go-ddg
ddg duckduckgo-api go
Last synced: 2 months ago
JSON representation
Package ddg provides an interface to the DuckDuckGo API.
- Host: GitHub
- URL: https://github.com/thecreeper/go-ddg
- Owner: TheCreeper
- License: gpl-3.0
- Created: 2015-05-07T18:43:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-13T21:26:52.000Z (almost 10 years ago)
- Last Synced: 2025-01-08T18:15:48.556Z (4 months ago)
- Topics: ddg, duckduckgo-api, go
- Language: Go
- Size: 137 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
go-ddg
=====================[](http://godoc.org/github.com/TheCreeper/go-ddg)
Package ddg provides an implementation of the [DuckDuckGo API](https://duckduckgo.com/api).
## Example
```
package mainimport (
"log"
"fmt""github.com/TheCreeper/go-ddg"
)func main() {
c := ddg.NewClient()
_, text, err := c.FeelingLucky("Ducks")
if err != nil {log.Fatal(err)
}fmt.Println(text)
}
```