ddg

command
v0.0.0-...-9d0cf94 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: BSD-2-Clause-Views Imports: 4 Imported by: 0

README

DuckDuckGo Bang launcher

EXAMPLE

$ ddg g dogs
...
https://duckduckgo.com/?q=!g%20dogs
https://encrypted.google.com/search?hl=en&q=dogs

DOCUMENTATION

https://godoc.org/github.com/mcandre/toys/system/go/ddg

RUNTIME REQUIREMENTS

(None)

BUILDTIME REQUIREMENTS

  • Go 1.11+
  • Mage (e.g., go get github.com/magefile/mage)
  • goimports (e.g. go get golang.org/x/tools/cmd/goimports)
  • golint (e.g. go get github.com/golang/lint/golint)
  • errcheck (e.g. go get github.com/kisielk/errcheck)
  • nakedret (e.g. go get github.com/alexkohler/nakedret)
  • shadow (e.g. go get -u golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow)

INSTALL FROM REMOTE GIT REPOSITORY

$ go get github.com/mcandre/toys/system/go/ddg/...

(Yes, include the ellipsis as well, it's the magic Go syntax for downloading, building, and installing all components of a package, including any libraries and command line tools.)

INSTALL FROM LOCAL GIT REPOSITORY

$ mkdir -p "$GOPATH/src/github.com/mcandre"
$ git clone https://github.com/mcandre/toys.git "$GOPATH/src/github.com/mcandre/toys"
$ cd "$GOPATH/src/github.com/mcandre/toys/system/go/ddg"
$ git submodule update --init --recursive
$ go install ./...

TEST

$ mage test

LINT

Keep the code tidy:

$ mage lint

Documentation

Overview

Package main provides a ddg executable for launching DuckDuckGo queries in the operating system's default browser.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL