duckduckgo

package
Version: v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuckDuckGo

type DuckDuckGo struct {
}

DuckDuckGo implements radium.Source interface using DuckDuckGo search engine project.

func New

func New() *DuckDuckGo

New initializes a duckduckgo based radium source implementation.

func (DuckDuckGo) Search

func (ddg DuckDuckGo) Search(ctx context.Context, query radium.Query) ([]radium.Article, error)

Search makes request to duckduckgo instant answers API to fetch the abstract.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL