Golang - How to check a function is referenced in other source file?
<p>I'm a fresh man of golang and here is my problem:</p>

<ol>
<li>I have a array of function names like this: <code>[FunctionA FunctionB]</code></li>
<li>I want to check if those functions are referenced in other source files like: <code>somefile.go</code>.</li>
</ol>

<p>What is the best way to achieve this?</p>

<p>In one word: <strong>How can I verify some functions are used in other source files in golang?</strong></p>

<p><strong>[Update]</strong> </p>

<p>Yes, it's something like <code>grep -rl "funcName" files</code>, but how can I omit comments in this case?</p>