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

     1  package stringslice
     2  
     3  func AllElemLengthSlices(slices ...*[]string) int {
     4  	if len(slices) == 0 {
     5  		return 0
     6  	}
     7  
     8  	countOfAll := 0
     9  
    10  	for _, slice := range slices {
    11  		if slice == nil {
    12  			continue
    13  		}
    14  
    15  		countOfAll += len(*slice)
    16  	}
    17  
    18  	return countOfAll
    19  }