Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fzipp/gofind
Find Go modules via pkg.go.dev from the command line.
https://github.com/fzipp/gofind
command-line-tool go godoc golang modules packages search
Last synced: 2 months ago
JSON representation
Find Go modules via pkg.go.dev from the command line.
- Host: GitHub
- URL: https://github.com/fzipp/gofind
- Owner: fzipp
- License: bsd-3-clause
- Created: 2013-11-25T01:28:53.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T08:29:57.000Z (4 months ago)
- Last Synced: 2024-10-16T03:44:51.276Z (3 months ago)
- Topics: command-line-tool, go, godoc, golang, modules, packages, search
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gofind
[![PkgGoDev](https://pkg.go.dev/badge/github.com/fzipp/gofind)](https://pkg.go.dev/github.com/fzipp/gofind)
![Build Status](https://github.com/fzipp/gofind/workflows/build/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/fzipp/gofind)](https://goreportcard.com/report/github.com/fzipp/gofind)Gofind conveniently searches for Go modules
from the command line
and lists them there
without the need to visit [pkg.go.dev](https://pkg.go.dev)
through a web browser.## Installation
```
go install github.com/fzipp/gofind@latest
```## Usage
```
gofind [-a] query ...Flags:
-a load all search results if set, not just the first 10 results
```## Examples
Search for packages providing logging functionality:
```
$ gofind logging
log (log)
Package log implements a simple logging package.Imported by 369,051 | go1.17.3 published on 5 days ago | BSD-3-Clause
logrus (github.com/sirupsen/logrus)
Package logrus is a structured logger for Go, completely API compatible
with the standard library logger.Imported by 75,868 | v1.8.1 published on Mar 9, 2021 | MIT
log (github.com/go-kit/kit/log)
Package log provides a structured logger.Imported by 5,625 | v0.12.0 published on Sep 18, 2021 | MIT
...
```Search for multiple terms:
```
$ gofind go cloud
```Search for an exact match:
```
$ gofind "go cloud"
```Combine searches:
```
$ gofind yaml OR json
```### Tip
If you wish to enable automatic paging
when the output doesn't fit on one screen,
you can add the following function to your shell profile
(e.g. ~/.bash_profile)
on Unix or Linux systems:```
# Automatically page gofind output if it doesn't fit on one screen.
gofind() {
command gofind "$@" | less -X -F
}
```## License
This project is free and open source software licensed under the
[BSD 3-Clause License](LICENSE).