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
Recommended
- 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