gitlab.com/evatix-go/core@v1.3.55/coreutils/stringutil/SplitLeftRightsTrims.go (about)

     1  package stringutil
     2  
     3  import "gitlab.com/evatix-go/core/coredata/corestr"
     4  
     5  func SplitLeftRightsTrims(separator string, lines ...string) []*corestr.LeftRight {
     6  	length := len(lines)
     7  	slice := make([]*corestr.LeftRight, length)
     8  
     9  	if length == 0 {
    10  		return slice
    11  	}
    12  
    13  	for i, line := range lines {
    14  		slice[i] = SplitLeftRightTypeTrimmed(
    15  			separator,
    16  			line)
    17  	}
    18  
    19  	return slice
    20  }