diff --git a/gen/elem.go b/gen/elem.go index 68a3356..c7d1b97 100644 --- a/gen/elem.go +++ b/gen/elem.go @@ -799,6 +799,8 @@ func (s *BaseElem) BaseType() string { return "[]byte" case Time: return "time.Time" + case Duration: + return "time.Duration" case Ext: return "msgp.Extension"