title: golang passing func as param to another func
body: <p>Main question is "is it possible to pass any type func as param and how?".
  I am learning Go and want to make my own async wrap function like this:</p>
  
  <pre><code>func AsyncFunc(fn func(), args ...interface{}) chan bool {
      var done chan bool;
  
      go func() {
          fn(args...);
          done &lt;- true;
      }();
  
      return done;
  }
  </code></pre>
  
  <p>and call it:</p>
  
  <pre><code>max := func(a, b int) int {
      //some hard code what will be goroutine
      if a &gt; b {return a};
      return b;
  }
  
  done := AsyncFunc(max, 5, 8);
  //some pretty code
  &lt;- done;
  </code></pre>
  
  <p>P.S. sorry for my English if it is bad...</p>
  
  <p>Edit1:
  I know it is useless, slow and danger. It is just my crazy idea what i want just realise.</p>