func scanWithPrefixAndLineEnding(scanner *bufio.Scanner, prefix []byte, newline []byte) []byte {
	result := bytes.NewBuffer(nil)
	result.Grow(averageInsertionPointSize)
	for scanner.Scan() {
		// These writes cannot fail, they will panic if they cannot
		// allocate
		_, _ = result.Write(prefix)
		_, _ = result.Write(scanner.Bytes())
		_, _ = result.Write(newline)
	}
	return result.Bytes()
}
// scanWithPrefixAndLineEnding iterates over each of the given scanner's lines
// prepends prefix, and appends the newline sequence.
scanWithPrefixAndLineEnding iterates over each of the given scanner's lines
prepends prefix, and appends the newline sequence.
// scanWithPrefixAndLineEnding iterates over each of the given scanner ' s lines // prepends prefix and appends the newline sequence .
func scanWithPrefixAndLineEnding(scanner *bufio.Scanner, prefix []byte, newline []byte) []byte {
	result := bytes.NewBuffer(nil)
	result.Grow(averageInsertionPointSize)
	for scanner.Scan() {
		_, _ = result.Write(prefix)
		_, _ = result.Write(scanner.Bytes())
		_, _ = result.Write(newline)
	}
	return result.Bytes()
}
func scanWithPrefixAndLineEnding ( scanner * bufio . Scanner , prefix [ ] byte , newline [ ] byte ) [ ] byte { result := bytes . NewBuffer ( nil ) result . Grow ( averageInsertionPointSize ) for scanner . Scan ( ) { _ , _ = result . Write ( prefix ) _ , _ = result . Write ( scanner . Bytes ( ) ) _ , _ = result . Write ( newline ) } return result . Bytes ( ) }
scanWithPrefixAndLineEnding iterates over each of the given scanner's lines
prepends prefix, and appends the newline sequence.
scanWithPrefixAndLineEnding iterates over each of the given scanner ' s lines prepends prefix and appends the newline sequence .
// These writes cannot fail, they will panic if they cannot // allocate