(value bool)
| 245 | } |
| 246 | |
| 247 | func (e *Encoder) EncodeBool(value bool) error { |
| 248 | if value { |
| 249 | return e.writeCode(msgpcode.True) |
| 250 | } |
| 251 | return e.writeCode(msgpcode.False) |
| 252 | } |
| 253 | |
| 254 | func (e *Encoder) EncodeDuration(d time.Duration) error { |
| 255 | return e.EncodeInt(int64(d)) |
no test coverage detected