This is a reusable encoder. It allows to encode many objects to a single writer. This should not be used by more than one goroutine at the time.
| 29 | // It allows to encode many objects to a single writer. |
| 30 | // This should not be used by more than one goroutine at the time. |
| 31 | type Encoder struct { |
| 32 | buf fflib.Buffer |
| 33 | w io.Writer |
| 34 | enc *json.Encoder |
| 35 | } |
| 36 | |
| 37 | // SetEscapeHTML specifies whether problematic HTML characters |
| 38 | // should be escaped inside JSON quoted strings. |
nothing calls this directly
no outgoing calls
no test coverage detected