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

     1  package stringslice
     2  
     3  // CloneSimpleSliceToPointers on nil or empty makes new  &[]string{}
     4  // else makes a copy of itself
     5  func CloneSimpleSliceToPointers(slice []string) (slicePtr *[]string) {
     6  	if IsEmpty(slice) {
     7  		return &[]string{}
     8  	}
     9  
    10  	return MergeNew(slice)
    11  }