gitlab.com/evatix-go/core@v1.3.55/coredata/stringslice/SafeIndexesDefaultPtr.go (about) 1 package stringslice 2 3 // SafeIndexesPtr Only indexes which are present values will be included. 4 // 5 // Warning : Not found indexes will not be included in the values. 6 func SafeIndexesPtr(slice *[]string, indexes ...int) (values *[]string) { 7 if IsEmptyPtr(slice) { 8 return MakeLenPtr(len(indexes)) 9 } 10 11 values2 := SafeIndexes(*slice, indexes...) 12 13 return &values2 14 }