String returns the accumulated string.
()
| 3010 | |
| 3011 | // String returns the accumulated string. |
| 3012 | func (b *Builder) String() string { |
| 3013 | if b.sb == nil { |
| 3014 | return "" |
| 3015 | } |
| 3016 | return b.sb.String() |
| 3017 | } |
| 3018 | |
| 3019 | // WriteByte wraps the Buffer.WriteByte to make it chainable with other methods. |
| 3020 | func (b *Builder) WriteByte(c byte) *Builder { |