Golang encode []string to []byte
|
July 3, 2021
| Development
If you want to encode a []string into a []byte func encodeString (data []string) []byte { buffer := &bytes.Buffer{} gob.NewEncoder(buffer).Encode(data) byteSlice := buffer.Byte...
Read More
