An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

go-ddg
=====================

[![go-ddg](https://godoc.org/github.com/TheCreeper/go-ddg?status.png)](http://godoc.org/github.com/TheCreeper/go-ddg)

Package ddg provides an implementation of the [DuckDuckGo API](https://duckduckgo.com/api).

## Example

```
package main

import (
"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)
}
```