bytes.Buffer.Truncate (method)

7 uses

	bytes (current package)
		buffer.go#L109: func (b *Buffer) Truncate(n int) {

	encoding/xml
		xml.go#L764: 				d.buf.Truncate(d.buf.Len() - 1)
		xml.go#L1112: 				d.buf.Truncate(before)

	go/ast
		commentmap.go#L282: 		buf.Truncate(maxLen - 3)

	go/doc/comment
		text.go#L76: 		out.Truncate(len(data) - n)

	golang.org/x/net/http2
		frame.go#L1861: 			buf.Truncate(buf.Len() - 1) // remove trailing comma

	net/http/internal/http2
		frame.go#L1879: 			buf.Truncate(buf.Len() - 1) // remove trailing comma