Yes go build works fine the binaries are generated fine. The problem is this the run function is passed as an argument to some other library and then there context is being set and runAMQP and other functions are being called. It is in some other project.
You see mainutils.Run(run)?
Yeah, I see it, but I do not know anything aput that package. Also I have never seen anything in go that makes identifiers apear out of thin air…
So perhaps you have some other files in the same folder that also belong to package main and define those functions, which go build uses correctly but callgraph does not?
But without seeing the complete context of your project (or at least a minified version which shows the same behaviour) its hard to tell.
I am sorry but passing the whole path of the project generates the callgraph. I was only doing callgraph main.go. However, you have to pass whole project path.