MCPcopy Index your code
hub / github.com/pquerna/ffjson / Encoder

Struct Encoder

ffjson/encoder.go:31–35  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
31type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected