gitlab.com/evatix-go/core@v1.3.55/errcore/VarNameValues.go (about) 1 package errcore 2 3 import ( 4 "strings" 5 6 "gitlab.com/evatix-go/core/constants" 7 "gitlab.com/evatix-go/core/namevalue" 8 ) 9 10 func VarNameValues( 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 constants.CommaSpace) 22 }