gogrep
gogrep copied to clipboard
Syntax-aware Go code search, based on the mvdan/gogrep
Ruleguard, when I try `m["x"].Node.Is("Package")`, tells me that “Package is not a valid go/ast type name”. … but [it is](https://pkg.go.dev/go/ast#Package) … ? Thank you for ruleguard! I’m finding it useful.
Hi Folks, I've come here from the go-ruleguard package in an attempt to understand beyond the examples how the gogrep part of go-ruleguard works. Unfortunately there's not really much information...
… $y.Text()' Want to do out-of-the box things like that: > gogrep . '$x : append($y, $*_)' '$x.Text() != $y.Text()'
Use https://github.com/quasilyte/stdinfo instead of `internal/stdinfo`.
This will make it possible to format the output in a way that it can be processed by the other tool. For example, that other script can sort the results...