Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
/ ddg Public archive

Go package for DuckDuckGo Zero-click API access

License

Notifications You must be signed in to change notification settings

whee/ddg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ddg - A Go package for DuckDuckGo Zero-click API access

Install

go get github.com/whee/ddg

Use

package main

import (
	"fmt"
	"github.com/whee/ddg"
	"os"
)

func main() {
	for _, s := range os.Args[1:] {
		if r, err := ddg.ZeroClick(s); err == nil {
			fmt.Printf("%s: %s\n", s, r.Abstract)
		} else {
			fmt.Printf("Error looking up %s: %v\n", s, err)
		}
	}
}

See godoc documentation for more information.

About

Go package for DuckDuckGo Zero-click API access

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages