Captain ALM
da41214617
All checks were successful
continuous-integration/drone/push Build is passing
11 lines
172 B
Go
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
|
|
}
|