Created
May 27, 2020 07:07
-
-
Save azhang/f0f7d8a76f820093faf06c4460eeaa54 to your computer and use it in GitHub Desktop.
grep all types in golang repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rg --multiline --multiline-dotall --type=go "^type [a-zA-Z]* struct([^\n]*}|.*?^})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment