Here are two data structures
result []byte
chunk [][]byte
"chunk" is initialized as follows
chunk := make([][]byte, 3)
for i := 0 ; i < 5; i++ {
chunk[i] = data //data is a byte array
}
How can I concatenate chunks
into to result[]
?
Example
If chunks is "123", "456", "789"
, then result should be "123456789"