kelindar / binary

Generic and fast binary serializer for Go

Home Page:https://emitter.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[]interface{} failed

sefgit opened this issue · comments

binary: unsupported type interface {}
binary.Marshal failed due to []interface{}

json.Marshall has no issue with it.

Yes, it won't work with interface{} since the bytes don't actually carry the type information. If you absolutely need it, might want to check out msgpack encoding (or similar).