mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-12-23 22:11:10 +02:00
15 lines
218 B
Go
15 lines
218 B
Go
package xmlparser
|
|
|
|
import "io"
|
|
|
|
type writeCounter struct {
|
|
Writer io.Writer
|
|
Count int64
|
|
}
|
|
|
|
func (wc *writeCounter) Write(p []byte) (int, error) {
|
|
n, err := wc.Writer.Write(p)
|
|
wc.Count += int64(n)
|
|
return n, err
|
|
}
|