bytes.Buffer.Truncate (method)
8 uses
bytes (current package)
buffer.go#L82: func (b *Buffer) Truncate(n int) {
encoding/json
indent.go#L53: dst.Truncate(origLen)
indent.go#L139: dst.Truncate(origLen)
encoding/xml
xml.go#L758: d.buf.Truncate(d.buf.Len() - 1)
xml.go#L1097: d.buf.Truncate(before)
go/ast
commentmap.go#L301: buf.Truncate(maxLen - 3)
golang.org/x/net/http2
frame.go#L1632: buf.Truncate(buf.Len() - 1) // remove trailing comma
net/http
h2_bundle.go#L2954: buf.Truncate(buf.Len() - 1) // remove trailing comma
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)