https://github.com/mingrammer/gosearch
:mag: Search the Go packages via command-line
https://github.com/mingrammer/gosearch
cli go package search
Last synced: 3 months ago
JSON representation
:mag: Search the Go packages via command-line
- Host: GitHub
- URL: https://github.com/mingrammer/gosearch
- Owner: mingrammer
- Created: 2019-11-22T06:45:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T23:12:07.000Z (almost 3 years ago)
- Last Synced: 2024-08-04T01:23:34.818Z (7 months ago)
- Topics: cli, go, package, search
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 55
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - gosearch - line | mingrammer | 48 | (Go)
README
# GoSearch
Search the Go packages for [pkg.go.dev](https://pkg.go.dev/) via command-line. It supports all search options in [Search Help](https://pkg.go.dev/search-help).
## Installation
```
go get github.com/mingrammer/gosearch
```## Usage
Basic search.
```
$ gosearch fastjson
```You can query with multiple search words.
```
$ gosearch logging zero alloc
```Use `-n` option to see more. (default: 10)
```
$ gosearch -n 20 redis
```Use `-e` option to search for an exact match.
```
$ gosearch -e go cloud
```Use `-o` option to combine searches. It will search for each word and combine their results.
```
$ gosearch -o json yaml
```## Example
Search the mux packages with `gosearch mux`.
```shell
$ gosearch mux
github.com/gorilla/mux (v1.7.3)
├ Package mux implements a request router and dispatcher.
└ Published: Jun 30, 2019 | Imported by: 6513 | License: BSD-3-Clausek8s.io/apiserver/pkg/server/mux (v0.0.0 (6eed2f5))
├ Package mux contains abstractions for http multiplexing of APIs.
└ Published: 1 day ago | Imported by: 222 | License: Apache-2.0github.com/containous/mux (v0.0.0 (c33f32e))
├ Package mux implements a request router and dispatcher.
└ Published: Oct 24, 2018 | Imported by: 95 | License: BSD-3-Clausek8s.io/kubernetes/pkg/genericapiserver/mux (v1.5.8)
├ Package mux contains abstractions for http multiplexing of APIs.
└ Published: Sep 30, 2017 | Imported by: 61 | License: Apache-2.0k8s.io/kubernetes/pkg/genericapiserver/server/mux (v1.6.0 (alpha.1))
├ Package mux contains abstractions for http multiplexing of APIs.
└ Published: Jan 30, 2017 | Imported by: 48 | License: Apache-2.0github.com/coreos/etcd/third_party/github.com/gorilla/mux (v0.4.9)
├ Package gorilla/mux implements a request router and dispatcher.
└ Published: Mar 31, 2015 | Imported by: 66 | License: BSD-3-Clause, Apache-2.0github.com/muxinc/mux-go/examples/common (v0.3.0)
└ Published: Oct 25, 2019 | Imported by: 9 | License: MITgithub.com/muxinc/mux-go (v0.3.0)
└ Published: Oct 25, 2019 | Imported by: 12 | License: MITgithub.com/yinqiwen/gsnova/common/mux (v0.30.0)
└ Published: Oct 29, 2017 | Imported by: 26 | License: BSD-3-Clausev2ray.com/core/common/mux (v4.19.1+incompatible)
└ Published: Jun 3, 2019 | Imported by: 24 | License: MIT
```