blob: b6c2c47c1684f3992a7d76bd845de415dcaf4f42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|


[](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/cmd/gogrep
```
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).
|