bytes.Buffer.Truncate (method)
14 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#L1091: d.buf.Truncate(before)
github.com/go-git/go-git/v5/plumbing/format/idxfile
writer.go#L145: buf.Truncate(0)
writer.go#L149: buf.Truncate(0)
github.com/google/licensecheck/internal/match
resyntax.go#L108: b.Truncate(i)
resyntax.go#L148: b.Truncate(b.Len() - 1) // strip \n
github.com/russross/blackfriday/v2
block.go#L1054: work.Truncate(eol)
go/ast
commentmap.go#L301: buf.Truncate(maxLen - 3)
golang.org/x/mod/modfile
print.go#L76: p.Truncate(n)
golang.org/x/net/http2
frame.go#L1588: buf.Truncate(buf.Len() - 1) // remove trailing comma
net/http
h2_bundle.go#L2831: buf.Truncate(buf.Len() - 1) // remove trailing comma
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |