Skip to content

Commit

Permalink
Added time.duration case to AppendIntf (#353)
Browse files Browse the repository at this point in the history
Co-authored-by: Willem Adriaan Laubscher <[email protected]>
  • Loading branch information
RiaanLaubscher and BeardedNoMAD authored Jul 2, 2024
1 parent cde6e95 commit 7de405e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions msgp/write_bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7de405e

Please sign in to comment.