How to concatenate two arrays in Go - Stack Overflow
https://stackoverflow.com/questions/59578712/how-to-concatenate-two-arrays-in-go
WEBJan 3, 2020 · If you have an array, you can't pass that directly to append(). What you may do is slice the array, so you get a slice (which will use the array as its backing store), and you can use that slice as the target and source of elements. For example: s := seven[:0] s = append(s, five[:]...) s = append(s, two[:]...) fmt.Println(seven)
DA: 32 PA: 67 MOZ Rank: 39