Wouldn't math.Float64bits be easier? And encoding/binary.LittleEndian.PutUint64 
would help the readability, too.

If you need more speed, and the records have the same structure, you could do 
the type swith once: create a slice of type-specific functions, and later just 
invoke them.

-- 
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