Created
September 28, 2019 20:03
-
-
Save ccqpein/7f7283f06ab8e090caac12b773532dff to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function: ^func\ +\w+\((|(\w+\ +\w+\ *,*\ *)+(\w+\ +\.\.\.interface{})*)\)\ +(\w+|\((\w+\ *,*\ *)+\))\ *{.*$ | |
interface: ^type\ +\w+\ +interface\ *{(|\ *\n*(\w+\((|(\w+\ +\w+\ *,*\ *)+(\w+\ +\.\.\.interface{})*)\)\ *(|\w+|\((\w+\ *,*\ *)+\))\n)*)*} | |
struct: ^type\ +\w+\ +struct\ *{(?<body>|\s*\n+(\s+?(\w+|\w+\s*,*\s*)+?\s+\w+\n+)*?)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment