Golang's Bool Type
<p>How do I return a true or false from a function and then check it. This code returns an error: <strong>mismatched types func() bool and bool</strong></p>

<pre><code>func d() bool {
    var e bool
    return e
}

if d == true {
    fmt.Printf("true")
}
</code></pre>