Re-run the current function when the function is a variable : <p>I have a function named <code>test</code> which is inside the main func.</p>

<pre><code>//stuff

func main() {
  var test = func() {
    if (/*some condition from main*/) {
      return test()
    }
  }

  val := test()
}
</code></pre>

<p>When i run this it says:</p>

<blockquote>
  <p>undefined: test</p>
</blockquote>

<p>and it is referencing the <code>return test()</code> inside the test func.
How can i fix this?</p>
