Skip to content
This repository was archived by the owner on Nov 10, 2017. It is now read-only.

Commit 6419065

Browse files
committed
Merge pull request #3 from mrd0ll4r/int23
add support for int32/uint32
2 parents 3c485a8 + 61abd43 commit 6419065

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

encoder.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ func marshal(w io.Writer, data interface{}) error {
6868
case uint16:
6969
marshalUint(w, uint64(v))
7070

71+
case int32:
72+
marshalInt(w, int64(v))
73+
74+
case uint32:
75+
marshalUint(w, uint64(v))
76+
7177
case int64:
7278
marshalInt(w, v)
7379

0 commit comments

Comments
 (0)