vikunja-api/vendor/github.com/laurent22/ical-go/lib.go

19 lines
275 B
Go
Raw Normal View History

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