(arr *[]*Window, id xproto.Window)
| 1400 | } |
| 1401 | |
| 1402 | func remove(arr *[]*Window, id xproto.Window) { |
| 1403 | if len(*arr) == 1 { |
| 1404 | *arr = []*Window{} |
| 1405 | } |
| 1406 | for index := range *arr { |
| 1407 | if (*arr)[index].id == id { |
| 1408 | *arr = append((*arr)[:index], (*arr)[index+1:]...) |
| 1409 | return |
| 1410 | } |
| 1411 | } |
| 1412 | } |
| 1413 | |
| 1414 | func runCommand(cmdStr string) { |
| 1415 | parser := shellwords.NewParser() |
no outgoing calls
no test coverage detected