当前位置: 首页 > 工具软件 > go-callvis > 使用案例 >

go-callvis no main packages

廉志强
2023-12-01
1.
Main package is required for the analysis used, because all the calls in the callgraph tree begins in main (and inits).

2.
In package you don't really know what will be called, since it's just a package without some start point. Program that will use the package can call anything or nothing.

tips:
	使用ignore选项来忽略一些依赖:
		go-callvis -ignore os,fmt,strings,io,bufio,regexp,errors,encoding,strconv,time,flag  .

 类似资料: