ondrajz / go-callvis

Visualize call graph of a Go program using Graphviz
https://ofabry.github.io/go-callvis
MIT License
5.85k stars 406 forks source link

go-callivis tags 不生效 #64

Open www1981www opened 4 years ago

www1981www commented 4 years ago

在生成docker 代码daemon时,发现代码中有//+build daemon标记,go build 带tags 参数发现能走到对应分支,但是通过此工具时,发现没有走到对应的代码

suntong commented 3 years ago

The author is from Bratislava, Slovakia. Are you sure he understand Chinese?

I wanted translate for you but I found myself don't understand what you were talking about.

xs-cw commented 2 years ago

The author is from Bratislava, Slovakia. Are you sure he understand Chinese?

I wanted translate for you but I found myself don't understand what you were talking about.

他说的是带有像// +build zookeeper 这样条件编译的代码的时候,tags 参数设置不生效

Nononoa-Zoro commented 2 years ago

all the world is speaking chinese!!!

suntong commented 2 years ago

I can't even make sense what @xs-cw has commented, but here it is, the translation, to the best of my effort:

What he (@www1981www ) is talking about is that the tags parameter setting does not take effect (has no effect) when the code is conditionally compiled/built like/with // +build zookeeper.

What @www1981www originally said:

"在生成docker 代码daemon时,发现代码中有//+build daemon标记,go build 带tags 参数发现能走到对应分支,但是通过此工具时,发现没有走到对应的代码" translates:

When generating the docker daemon, if there is a //+build daemon tag in the code, go build with the tags parameter is able to find & go to the corresponding branch, but when using this tool, the corresponding code is not reached.