grim/tagpull
Clone
Summary
Browse
Changes
Graph
Change the repo path and rename to tagops
draft
2019-12-30, Gary Kramlich
43e9ed2e7723
Change the repo path and rename to tagops
package
main
import
(
"strings"
)
// create a comma separate string of labels to match based on a map
func
createLabelString
(
labelMap
map
[
string
]
string
)
string
{
labels
:=
make
([]
string
,
len
(
labelMap
))
i
:=
0
for
k
,
v
:=
range
labelMap
{
labels
[
i
]
=
k
+
"="
+
v
i
++
}
return
strings
.
Join
(
labels
,
","
)
}