gitlab.com/evatix-go/core@v1.3.55/coredata/stringslice/MergeNewSimple.go (about) 1 package stringslice 2 3 import "gitlab.com/evatix-go/core/constants" 4 5 func MergeNewSimple(simpleSlices ...[]string) []string { 6 sliceLength := len(simpleSlices) 7 8 if sliceLength == 0 { 9 return []string{} 10 } 11 12 slicesPtr := make([]*[]string, constants.Zero, sliceLength) 13 14 for _, slice := range simpleSlices { 15 if len(slice) == 0 { 16 continue 17 } 18 19 slicesPtr = append(slicesPtr, &slice) 20 } 21 22 return *MergeNewSlicesPtrOfSlicesPtr(&slicesPtr) 23 }