github.com/jenkins-x/jx/v2@v2.1.155/cmd/codegen/util/strings.go (about)

     1  package util
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  func JoinMap(m map[string]string, pairSep string, keyValueSep string) string {
     8  	answer := ""
     9  	for k, v := range m {
    10  		answer = fmt.Sprintf("%s%s%s%s%s", answer, k, keyValueSep, v, pairSep)
    11  	}
    12  	return answer
    13  }