vikunja-api/vendor/github.com/samedi/caldav-go/lib/strbuff.go

19 lines
283 B
Go
Raw Normal View History

2019-05-22 19:48:48 +02:00
package lib
import (
"bytes"
"fmt"
)
type StringBuffer struct {
buffer bytes.Buffer
}
func (b *StringBuffer) Write(format string, elem ...interface{}) {
b.buffer.WriteString(fmt.Sprintf(format, elem...))
}
func (b *StringBuffer) String() string {
return b.buffer.String()
}