mc-webserver/utils/io/buffered-writer.go
2023-08-13 20:19:47 +01:00

11 lines
172 B
Go

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
}