Relative Content

Tag Archive for go

Use go/analysis to obtain the function invocation graph in the self-developed project

I want to get the function call graph information in a self-developed Go language project through the “golang.org/x/tools/go/analysis” tool, the following is the code obtained, but when it runs, pass. There is only one main.go file in the root directory in Files, I don’t know what causes it? I want to get the function call graph information in a self-developed Go language project through the “golang.org/x/tools/go/analysis” tool, the following is the code obtained, but when it runs, pass. There is only one main.go file in the root directory in Files, I don’t know what causes it?Please advise