Captain ALM
da41214617
All checks were successful
continuous-integration/drone/push Build is passing
11 lines
169 B
Go
11 lines
169 B
Go
package io
|
|
|
|
type CountingWriter struct {
|
|
Length int64
|
|
}
|
|
|
|
func (c *CountingWriter) Write(p []byte) (n int, err error) {
|
|
c.Length += int64(len(p))
|
|
return len(p), nil
|
|
}
|