WriteByte wraps the Buffer.WriteByte to make it chainable with other methods.
(c byte)
| 3018 | |
| 3019 | // WriteByte wraps the Buffer.WriteByte to make it chainable with other methods. |
| 3020 | func (b *Builder) WriteByte(c byte) *Builder { |
| 3021 | if b.sb == nil { |
| 3022 | b.sb = &strings.Builder{} |
| 3023 | } |
| 3024 | b.sb.WriteByte(c) |
| 3025 | return b |
| 3026 | } |
| 3027 | |
| 3028 | // WriteString wraps the Buffer.WriteString to make it chainable with other methods. |
| 3029 | func (b *Builder) WriteString(s string) *Builder { |
no outgoing calls