cityuni-webserver/pageHandler/utils/buffered-writer.go
Captain ALM ef3c387f39
All checks were successful
continuous-integration/drone/push Build is passing
Switch over from test to go-info.
Improve Makefile and add new compilation fields.
2022-07-16 00:53:50 +01:00

11 lines
175 B
Go

package utils
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
}