GetCommandName returns the name of the last level corresponding to the node name.
()
| 71 | // GetCommandName returns the name of the last level |
| 72 | // corresponding to the node name. |
| 73 | func (label *Label) GetCommandName() string { |
| 74 | if len(label.LevelsName) > 0 { |
| 75 | return label.LevelsName[len(label.LevelsName)-1] |
| 76 | } |
| 77 | return "" |
| 78 | } |
| 79 | |
| 80 | // GetCommandId returns the ID of the last level |
| 81 | // corresponding to the node ID. |
no outgoing calls