https://github.com/sheepla/gofind
🔍 A command line pkg.go.dev searcher and `go get` helper
https://github.com/sheepla/gofind
cli cli-searcher go go-cli go-package
Last synced: 10 months ago
JSON representation
🔍 A command line pkg.go.dev searcher and `go get` helper
- Host: GitHub
- URL: https://github.com/sheepla/gofind
- Owner: sheepla
- License: mit
- Created: 2022-06-25T15:55:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-10T11:39:19.000Z (over 3 years ago)
- Last Synced: 2025-04-06T00:51:09.939Z (11 months ago)
- Topics: cli, cli-searcher, go, go-cli, go-package
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/sheepla/gofind/actions/workflows/release.yml)
[](https://github.com/sheepla/gofind/actions/workflows/ci.yml)
# 🔍 gofind
*A command line [pkg.go.dev](https://pkg.go.dev) searcher and `go get` helper*
[](https://github.com/sheepla/gofind/blob/master/LICENSE)
[](https://github.com/sheepla/gofind/releases/latest)
## Features
- [x] Quickly search Go packages or symbol
- [x] Easily get package that you selected
- [x] Search results can be output in JSON format
- [x] Can be open the document page in your web browser
## Usage
```
Usage:
gofind [OPTIONS] QUERY...
Application Options:
-s, --symbol Search for symbol instead of package
-l, --limit= Number of search result items limit (default: 20)
-V, --version Show version
-j, --json Output search results in JSON format
-o, --open Open the document URL in your web browser
-u, --url Output pkg.go.dev URL instead of output package name
-g, --goget Run go get command to get the package that you selected
Help Options:
-h, --help Show this help message
```
Simply specifying the keywords in the arguments e.g. package name (`template`), symbol name (`io.Reader`), multiple keywords (`json OR yaml`) etc.
> **NOTE**:
> To see examples of keywords to search for, check [search-help](https://pkg.go.dev/search-help) on pkg.go.dev.
It can be output the result in JSON format by specifying the `-j`, `--json` option.
By default, it searches for packages, but you can also search for symbols with the `-s`, `--symbol` option.
When you select an item, the name of the package is output. You can also output the URL by specifying the `-u`, `--url` option.
## Installation
You can download the executable binaries from the latest page.
> [](https://github.com/sheepla/gofind/releases/latest)
To build from source, clone or download this repository then run `go install`, or run below:
```sh
go install github.com/sheepla/gofind@latest
```
Developing on `go1.18.3 linux/amd64`.
## License
[MIT](./LICENSE)
## Author
[Sheepla](https://github.com/sheepla)