// LabelsAsString combines static and dynamic labels and returns a comma
// separated string.
LabelsAsString combines static and dynamic labels and returns a comma
separated string.
// LabelsAsString combines static and dynamic labels and returns a comma // separated string .
func LabelsAsString(static map[string]string, dynamic map[string]CommandLabelV2) string {
	labels := []string{}
	for key, val := range static {
		labels = append(labels, fmt.Sprintf("%s=%s", key, val))
	}
	for key, val := range dynamic {
		labels = append(labels, fmt.Sprintf("%s=%s", key, val.Result))
	}
	sort.Strings(labels)
	return strings.Join(labels, ",")
}
func LabelsAsString ( static map [ string ] string , dynamic map [ string ] CommandLabelV2 ) string { labels := [ ] string { } for key , val := range static { labels = append ( labels , fmt . Sprintf ( " " , key , val ) ) } for key , val := range dynamic { labels = append ( labels , fmt . Sprintf ( " " , key , val . Result ) ) } sort . Strings ( labels ) return strings . Join ( labels , " " ) }
LabelsAsString combines static and dynamic labels and returns a comma
separated string.
LabelsAsString combines static and dynamic labels and returns a comma separated string .