Check empty float or integer value in golang
<p>I'm trying to check if my integer or float value is empty. But type error is thrown.</p>

<p>Tried: </p>

<pre><code>if foo == nil    
//Error: cannot convert nil to type float32
//all other methods I Tried also throw type errors too
</code></pre>