(enc ArrayEncoder)
| 569 | } |
| 570 | |
| 571 | func (l loggable) MarshalLogArray(enc ArrayEncoder) error { |
| 572 | if !l.bool { |
| 573 | return errors.New("can't marshal") |
| 574 | } |
| 575 | enc.AppendBool(true) |
| 576 | return nil |
| 577 | } |
| 578 | |
| 579 | // maybeNamespace is an ObjectMarshaler that sometimes opens a namespace |
| 580 | type maybeNamespace struct{ bool } |
nothing calls this directly
no test coverage detected