title: Go: check whether type of value is function
body: <p>How I can check that some variable in golang has type <code>func</code>, like this:</p>
  
  <pre><code>func A() {}
  
  func main() {
      variable := A
      isFunc := IsFunc(variable) // true or false
  }
  </code></pre>