https://github.com/quasilyte/gogrep
Syntax-aware Go code search, based on the mvdan/gogrep
https://github.com/quasilyte/gogrep
ast go gogrep golang search syntax
Last synced: about 1 year ago
JSON representation
Syntax-aware Go code search, based on the mvdan/gogrep
- Host: GitHub
- URL: https://github.com/quasilyte/gogrep
- Owner: quasilyte
- License: other
- Created: 2021-12-14T12:19:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T13:39:26.000Z (about 3 years ago)
- Last Synced: 2025-03-30T10:07:54.128Z (over 1 year ago)
- Topics: ast, go, gogrep, golang, search, syntax
- Language: Go
- Homepage:
- Size: 146 KB
- Stars: 39
- Watchers: 5
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](https://pkg.go.dev/github.com/quasilyte/gogrep)
[](https://goreportcard.com/report/github.com/quasilyte/gogrep)

# gogrep
This is an attempt to move a modified [gogrep](https://github.com/mvdan/gogrep) from the [go-ruleguard](https://github.com/quasilyte/go-ruleguard) project, so it can be used independently.
This repository contains two Go modules. One for the gogrep library and the second one for the command-line tool.
## gogrep as a library
To get a gogrep library module, install the root Go module.
```bash
$ go get github.com/quasilyte/gogrep
```
## gogrep as a command-line utility
To get a gogrep command-line tool, install the `cmd/gogrep` Go submodule.
```bash
$ go install github.com/quasilyte/gogrep/cmd/gogrep@latest
```
See [docs/gogrep_cli.md](_docs/gogrep_cli.md) to learn how to use it.
## Used by
A gogrep library is used by:
* [go-ruleguard](https://github.com/quasilyte/go-ruleguard)
* [gocorpus](https://github.com/quasilyte/gocorpus)
## Acknowledgements
The original gogrep is written by the [Daniel Martí](https://github.com/mvdan).