Created
September 11, 2020 22:38
-
-
Save csthompson/ff698769a0fd5fd745ce0c3f83b26d30 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
ast.Inspect(file, func(n ast.Node) bool { | |
// Find Function Call Statements | |
funcCall, ok := n.(*ast.CallExpr) | |
if ok { | |
fmt.Println(funcCall.Fun) | |
} | |
return true | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment