I have annotations object like this:
Annotations: map[string]string{
"common": "Some GPM consistency checkers have failed.",
"t_0": "Title1",
"t_1": "Title2",
"v_0": "V1",
"v_1": "V2",
I want to print it in table like:
| Title1 | Title2 |
|---|---|
| V1 | V2 |
I started something like:
{{ range .Annotations.SortedPairs }}
{{ if match "^t_" .Name }}
<p>{{ .Value }}</p>
{{ end }}
{{ end }}
but can't really figure out how it should be done. I want to do it dynamically because there can be different number of columns