String returns the String output of the JSON encoder
()
| 21 | |
| 22 | // String returns the String output of the JSON encoder |
| 23 | func (e Encoder) String() string { |
| 24 | return e.w.String() |
| 25 | } |
| 26 | |
| 27 | // Bytes returns the []byte slice of the JSON encoder |
| 28 | func (e Encoder) Bytes() []byte { |