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

Method MarshalLogArray

zapcore/field_test.go:53–61  ·  view source on GitHub ↗
(enc ArrayEncoder)

Source from the content-addressed store, hash-verified

51}
52
53func (u users) MarshalLogArray(enc ArrayEncoder) error {
54 if int(u) < 0 {
55 return errors.New("too few users")
56 }
57 for i := 0; i < int(u); i++ {
58 enc.AppendString("user")
59 }
60 return nil
61}
62
63type obj struct {
64 kind int

Callers

nothing calls this directly

Calls 1

AppendStringMethod · 0.65

Tested by

no test coverage detected