NanosDurationEncoder serializes a time.Duration to an integer number of nanoseconds elapsed.
(d time.Duration, enc PrimitiveArrayEncoder)
| 238 | // NanosDurationEncoder serializes a time.Duration to an integer number of |
| 239 | // nanoseconds elapsed. |
| 240 | func NanosDurationEncoder(d time.Duration, enc PrimitiveArrayEncoder) { |
| 241 | enc.AppendInt64(int64(d)) |
| 242 | } |
| 243 | |
| 244 | // MillisDurationEncoder serializes a time.Duration to an integer number of |
| 245 | // milliseconds elapsed. |
nothing calls this directly
no test coverage detected