strings.Builder.buf (field)
24 uses
strings (current package)
builder.go#L17: buf []byte
builder.go#L48: return *(*string)(unsafe.Pointer(&b.buf))
builder.go#L52: func (b *Builder) Len() int { return len(b.buf) }
builder.go#L57: func (b *Builder) Cap() int { return cap(b.buf) }
builder.go#L62: b.buf = nil
builder.go#L68: buf := make([]byte, len(b.buf), 2*cap(b.buf)+n)
builder.go#L69: copy(buf, b.buf)
builder.go#L70: b.buf = buf
builder.go#L81: if cap(b.buf)-len(b.buf) < n {
builder.go#L90: b.buf = append(b.buf, p...)
builder.go#L98: b.buf = append(b.buf, c)
builder.go#L107: b.buf = append(b.buf, byte(r))
builder.go#L110: l := len(b.buf)
builder.go#L111: if cap(b.buf)-l < utf8.UTFMax {
builder.go#L114: n := utf8.EncodeRune(b.buf[l:l+utf8.UTFMax], r)
builder.go#L115: b.buf = b.buf[:l+n]
builder.go#L123: b.buf = append(b.buf, s...)
![]() |
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. |