bytes.Buffer.Truncate (method)
7 uses
bytes (current package)
buffer.go#L109: func (b *Buffer) Truncate(n int) {
encoding/xml
xml.go#L757: d.buf.Truncate(d.buf.Len() - 1)
xml.go#L1105: 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#L1676: buf.Truncate(buf.Len() - 1) // remove trailing comma
net/http
h2_bundle.go#L3293: buf.Truncate(buf.Len() - 1) // remove trailing comma
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)