Float to string in Golang with a minimum width
<p>I'm trying to get a float to print using fmt.Printf with a minimum width of 3</p>

<pre><code>fmt.Printf("%3f", float64(0))
</code></pre>

<p>Should print <code>0.00</code>, but it instead prints <code>0.000000</code>
If I set the precision to 3, it truncates the value.</p>

<p>Basically, what I want is if the value is 0, it should print <code>0.00</code>. If the value is <code>0.045</code>, it should print <code>0.045</code>, etc.</p>