func testing/iotest.TruncateWriter

one use

	testing/iotest (current package)
		writer.go#L11: func TruncateWriter(w io.Writer, n int64) io.Writer {