(labelMap map[string]string)
| 174 | } |
| 175 | |
| 176 | func FormatLabels(labelMap map[string]string) string { |
| 177 | strs := make([]string, len(labelMap)) |
| 178 | idx := 0 |
| 179 | for i := range labelMap { |
| 180 | strs[idx] = fmt.Sprintf("%s=%s", i, labelMap[i]) |
| 181 | idx++ |
| 182 | } |
| 183 | return strings.Join(strs, ",") |
| 184 | } |
| 185 | |
| 186 | // ToJSON return a string with the JSON representation of the interface{} |
| 187 | // https://github.com/docker/compose/blob/v2/cmd/formatter/json.go#L31C4-L39 |
no outgoing calls
searching dependent graphs…