AppendStringer encodes and adds the Stringer value to the dst byte array.
(dst []byte, val fmt.Stringer)
| 51 | // AppendStringer encodes and adds the Stringer value to the dst |
| 52 | // byte array. |
| 53 | func (e Encoder) AppendStringer(dst []byte, val fmt.Stringer) []byte { |
| 54 | if val == nil { |
| 55 | return e.AppendNil(dst) |
| 56 | } |
| 57 | return e.AppendString(dst, val.String()) |
| 58 | } |
| 59 | |
| 60 | // AppendBytes encodes and adds an array of bytes to the dst byte array. |
| 61 | func (Encoder) AppendBytes(dst, s []byte) []byte { |