I have:
var buffer bytes.Buffer
s := "something to do"
for i := 0; i < 10; i++ {
buffer.WriteString(s)
}
Which appends to the buffer, is it possible to write to the beginning of a buffer?
I have:
var buffer bytes.Buffer
s := "something to do"
for i := 0; i < 10; i++ {
buffer.WriteString(s)
}
Which appends to the buffer, is it possible to write to the beginning of a buffer?