Write to beginning of the buffer in Golang?
<p>I have:</p>

<pre><code>var buffer bytes.Buffer
s := "something to do"
for i := 0; i &lt; 10; i++ {
   buffer.WriteString(s)
}
</code></pre>

<p>Which appends to the buffer, is it possible to write to the beginning of a buffer?</p>