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

Method MarshalLogArray

zapcore/json_encoder_bench_test.go:60–65  ·  view source on GitHub ↗
(encoder ArrayEncoder)

Source from the content-addressed store, hash-verified

58type StringSlice []string
59
60func (s StringSlice) MarshalLogArray(encoder ArrayEncoder) error {
61 for _, str := range s {
62 encoder.AppendString(str)
63 }
64 return nil
65}
66
67func generateStringSlice(n int) StringSlice {
68 output := make(StringSlice, 0, n)

Callers

nothing calls this directly

Calls 1

AppendStringMethod · 0.65

Tested by

no test coverage detected