github.com/kubeshop/testkube@v1.17.23/pkg/api/v1/testkube/common.go (about) 1 package testkube 2 3 import ( 4 "fmt" 5 "strings" 6 ) 7 8 func MapToString(m map[string]string) string { 9 labels := []string{} 10 for k, v := range m { 11 labels = append(labels, fmt.Sprintf("%s=%s", k, v)) 12 } 13 14 return strings.Join(labels, ", ") 15 }