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

     1  package stringslice
     2  
     3  // ExpandBySplit Take each slice item, split and add to the new slice array and returns it.
     4  func ExpandBySplit(slice *[]string, splitter string) *[]string {
     5  	length := LengthOfPointer(slice)
     6  	if length == 0 {
     7  		return &[]string{}
     8  	}
     9  
    10  	return ExpandBySplitsPtr(slice, splitter)
    11  }