bufio.Writer provides buffered writes. The default buffer size is 4096 bytes.
So an bufio.Writer won't write the the io.Writer (the file) until 4096
bytes has been written to it.
You don't need the bufio.Writer here, the file itself will work fine.
If you want a bufio.Writer to write out it's buffer call the Flush()
method on it.
> 17 if e != nil {
> 18 fmt.Println("e:", e)
> 19 os.Exit(2)
> 20 }
> 21 fmt.Println("n:", n)
> 22 }
>
--
=====================
http://jessta.id.au