Is it possible get information about caller function in Golang?
<p>Is it possible get information about caller function in Golang? For example if I have  </p>

<pre><code>func foo() {
    //Do something
}
func main() {
    foo() 
}
</code></pre>

<p>How can I get that <code>foo</code> has been called from <code>main</code>?<br>
I'm able to this in other language (for example in C# I just need to use <code>CallerMemberName</code> class attribute)</p>