gitlab.com/evatix-go/core@v1.3.55/coredata/stringslice/MergeNewSlicesPtrOfSlices.go (about)

     1  package stringslice
     2  
     3  // MergeNewSlicesPtrOfSlices Don't include nil or length 0 slices
     4  func MergeNewSlicesPtrOfSlices(slices ...*[]string) *[]string {
     5  	sliceLength := len(slices)
     6  
     7  	if sliceLength == 0 {
     8  		return &[]string{}
     9  	}
    10  
    11  	return MergeNewSlicesPtrOfSlicesPtr(&slices)
    12  }