gitlab.com/evatix-go/core@v1.3.55/errcore/VarNameValuesJoiner.go (about) 1 package errcore 2 3 import ( 4 "strings" 5 6 "gitlab.com/evatix-go/core/namevalue" 7 ) 8 9 func VarNameValuesJoiner( 10 joiner string, 11 nameValues ...namevalue.Instance, 12 ) string { 13 if len(nameValues) == 0 { 14 return "" 15 } 16 17 items := VarNameValuesStrings(nameValues...) 18 19 return strings.Join( 20 items, 21 joiner) 22 }