vikunja-api/vendor/github.com/samedi/caldav-go/lib/strbuff.go
2019-05-22 17:48:48 +00:00

18 lines
283 B
Go

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()
}