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 !

Sorry !
encoding/binary is what I need.

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