PushFront adds a level in the front of the current Label..
(name string, id int)
| 44 | |
| 45 | // PushFront adds a level in the front of the current Label.. |
| 46 | func (label *Label) PushFront(name string, id int) { |
| 47 | newLabel := &Label{LevelsName: []string{name}, LevelsID: []int{id}} |
| 48 | newLabel.PushBackLabel(label) |
| 49 | label.LevelsName = newLabel.LevelsName |
| 50 | label.LevelsID = newLabel.LevelsID |
| 51 | } |
| 52 | |
| 53 | // PushBackLabel adds a Label in the back of the current Label. |
| 54 | func (label *Label) PushBackLabel(labelToPush *Label) { |