MCPcopy
hub / github.com/uber-go/zap / Encode

Method Encode

zapcore/json_encoder_test.go:224–227  ·  view source on GitHub ↗
(obj interface{})

Source from the content-addressed store, hash-verified

222}
223
224func (enc *emptyReflectedEncoder) Encode(obj interface{}) error {
225 _, err := enc.writer.Write([]byte("{}"))
226 return err
227}
228
229func TestJSONCustomReflectedEncoder(t *testing.T) {
230 tests := []struct {

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected