(enc zapcore.ObjectEncoder)
| 67 | type groupObject []slog.Attr |
| 68 | |
| 69 | func (gs groupObject) MarshalLogObject(enc zapcore.ObjectEncoder) error { |
| 70 | for _, attr := range gs { |
| 71 | convertAttrToField(attr).AddTo(enc) |
| 72 | } |
| 73 | return nil |
| 74 | } |
| 75 | |
| 76 | func convertAttrToField(attr slog.Attr) zapcore.Field { |
| 77 | if attr.Equal(slog.Attr{}) { |
nothing calls this directly
no test coverage detected