From ac29f76e3cb62e2df4451c1ec4a1f556890c5f59 Mon Sep 17 00:00:00 2001 From: Willem Adriaan Laubscher Date: Tue, 2 Jul 2024 08:57:56 +0200 Subject: [PATCH] Added time.duration case to AppendIntf --- 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: