What to do if you need signed var into []byte buffer?

Hello !
I have []byte buffer, and need insert signed value into (from) them. How to do it ?

Thank you !
Oleg

Sorry !
encoding/binary is what I need.

Oleg
(Can you close topic) ?

convert it to a string (print it), then that to a byte slice, and place the byte slice in your buffer. The opposite flow to retrieve it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.