gitlab.com/evatix-go/core@v1.3.55/errcore/VarMap.go (about)

     1  package errcore
     2  
     3  import (
     4  	"strings"
     5  
     6  	"gitlab.com/evatix-go/core/constants"
     7  )
     8  
     9  func VarMap(
    10  	mappedItems map[string]interface{},
    11  ) string {
    12  	if len(mappedItems) == 0 {
    13  		return ""
    14  	}
    15  
    16  	items := VarMapStrings(mappedItems)
    17  
    18  	return strings.Join(
    19  		items,
    20  		constants.CommaSpace)
    21  }