Skip to content

Instantly share code, notes, and snippets.

@azhang
Created May 27, 2020 07:07
Show Gist options
  • Save azhang/f0f7d8a76f820093faf06c4460eeaa54 to your computer and use it in GitHub Desktop.
Save azhang/f0f7d8a76f820093faf06c4460eeaa54 to your computer and use it in GitHub Desktop.
grep all types in golang repo
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