I've tested []myObjType instead []byte, it works.
but I have many different kinds of object, so if a build []T for every type 
of object, the code is ugly.
I'm sure my code don't access memory out of range, it's something related 
to the conversions.

在 2016年7月9日星期六 UTC+8下午1:51:46,Tamás Gulácsi写道:
>
> That unsafe conversions should work, but it is unsafe. That panic means 
> your byte accounting is wrong somewhere.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to