WriteString appends the contents of s to b's Buffer. It returns the length of s and a nil error.
(s string)
| 32 | // WriteString appends the contents of s to b's Buffer. |
| 33 | // It returns the length of s and a nil error. |
| 34 | func (enc *Encoder) writeString(s string) { |
| 35 | enc.buf = append(enc.buf, s...) |
| 36 | } |
| 37 | |
| 38 | func (enc *Encoder) writeStringEscape(s string) { |
| 39 | l := len(s) |
no outgoing calls