(code string)
| 342 | } |
| 343 | |
| 344 | func (this *AppCmd) callDirective(code string) { |
| 345 | for _, directive := range this.directives { |
| 346 | if directive.Arg == code { |
| 347 | if directive.Callback != nil { |
| 348 | directive.Callback() |
| 349 | } |
| 350 | return |
| 351 | } |
| 352 | } |
| 353 | } |