StringDurationEncoder serializes a time.Duration using its built-in String method.
(d time.Duration, enc PrimitiveArrayEncoder)
| 250 | // StringDurationEncoder serializes a time.Duration using its built-in String |
| 251 | // method. |
| 252 | func StringDurationEncoder(d time.Duration, enc PrimitiveArrayEncoder) { |
| 253 | enc.AppendString(d.String()) |
| 254 | } |
| 255 | |
| 256 | // UnmarshalText unmarshals text to a DurationEncoder. "string" is unmarshaled |
| 257 | // to StringDurationEncoder, and anything else is unmarshaled to |
nothing calls this directly
no test coverage detected