gitlab.com/evatix-go/core@v1.3.55/corecsv/RangeNamesWithValuesIndexesCsvString.go (about)

     1  package corecsv
     2  
     3  import (
     4  	"strings"
     5  
     6  	"gitlab.com/evatix-go/core/constants"
     7  )
     8  
     9  // RangeNamesWithValuesIndexesCsvString
    10  //
    11  //  Returns a new slice to joined
    12  //  string using RangeNamesWithValuesIndexes
    13  //
    14  //  format
    15  //   - `name[ValueIndex]` + ", "
    16  //  example
    17  //   - `SomeName[1]` + ", "
    18  func RangeNamesWithValuesIndexesCsvString(
    19  	rangedItems ...string,
    20  ) string {
    21  	return strings.Join(
    22  		RangeNamesWithValuesIndexes(rangedItems...),
    23  		constants.CommaSpace)
    24  }