gitlab.com/evatix-go/core@v1.3.55/coredata/stringslice/ClonePtr.go (about) 1 package stringslice 2 3 // ClonePtr on nil or empty makes new &[]string{} 4 // else makes a copy of itself 5 func ClonePtr(slice *[]string) (slicePtr *[]string) { 6 if IsEmptyPtr(slice) { 7 return &[]string{} 8 } 9 10 return MergeNewPointers(slice) 11 }