From 7de405ec3a46ea91c21fe0247ee5e496845e8bc1 Mon Sep 17 00:00:00 2001 From: RiaanLaubscher <67367201+RiaanLaubscher@users.noreply.github.com> Date: Tue, 2 Jul 2024 10:47:07 +0200 Subject: [PATCH] Added time.duration case to AppendIntf (#353) Co-authored-by: Willem Adriaan Laubscher --- msgp/write_bytes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/msgp/write_bytes.go b/msgp/write_bytes.go index 8199ac28..12606cc2 100644 --- a/msgp/write_bytes.go +++ b/msgp/write_bytes.go @@ -396,6 +396,8 @@ func AppendIntf(b []byte, i interface{}) ([]byte, error) { return AppendUint64(b, i), nil case time.Time: return AppendTime(b, i), nil + case time.Duration: + return AppendDuration(b, i), nil case map[string]interface{}: return AppendMapStrIntf(b, i) case map[string]string: