cityuni-webserver/utils/io/buffered-writer.go

11 lines
172 B
Go
Raw Normal View History

2022-07-16 11:47:52 +01:00
package io
type BufferedWriter struct {
Data []byte
}
func (c *BufferedWriter) Write(p []byte) (n int, err error) {
c.Data = append(c.Data, p...)
return len(p), nil
}