mirror of
https://github.com/vbatts/srvdav.git
synced 2024-11-25 09:55:40 +00:00
18 lines
288 B
Go
18 lines
288 B
Go
package lib
|
|
|
|
import (
|
|
"fmt"
|
|
"bytes"
|
|
)
|
|
|
|
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()
|
|
}
|