WriteString wraps the Buffer.WriteString to make it chainable with other methods.
(s string)
| 3027 | |
| 3028 | // WriteString wraps the Buffer.WriteString to make it chainable with other methods. |
| 3029 | func (b *Builder) WriteString(s string) *Builder { |
| 3030 | if b.sb == nil { |
| 3031 | b.sb = &strings.Builder{} |
| 3032 | } |
| 3033 | b.sb.WriteString(s) |
| 3034 | return b |
| 3035 | } |
| 3036 | |
| 3037 | // S is a short version of WriteString. |
| 3038 | func (b *Builder) S(s string) *Builder { |
no outgoing calls