1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-23 22:11:10 +02:00
Files
imgproxy/xmlparser/write_couter.go
2025-10-24 23:34:05 +03:00

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
}