GetLabelAsAString returns the Label as a string concatenating names and ID for each level delimited by '/'.
()
| 107 | // GetLabelAsAString returns the Label as a string concatenating |
| 108 | // names and ID for each level delimited by '/'. |
| 109 | func (label *Label) GetLabelAsAString() string { |
| 110 | var output bytes.Buffer |
| 111 | for i := range label.LevelsID { |
| 112 | output.WriteString(label.LevelsName[i]) |
| 113 | fmt.Fprintf(&output, "%d", label.LevelsID[i]) |
| 114 | if i+1 < len(label.LevelsID) { |
| 115 | output.WriteString("/") |
| 116 | } |
| 117 | } |
| 118 | return output.String() |
| 119 | } |
| 120 | |
| 121 | // Hierarchy describes the levels ID of hierarchy for vulkan |
| 122 | // commands and vulkan subcommands. |