How to Concatenate Two or More Slices in Go
Starting from Go 1.22, concatenating slices is straightforward with the
introduction of the slice.Concat()
method. This method allows for the
combination of multiple slices into a single new slice. The method signature is
as follows: