MCPcopy Create free account
hub / github.com/Macmod/godap / findEntryInChildren

Function findEntryInChildren

tui/interface.go:30–40  ·  view source on GitHub ↗
(dn string, parent *tview.TreeNode)

Source from the content-addressed store, hash-verified

28}
29
30func findEntryInChildren(dn string, parent *tview.TreeNode) int {
31 siblings := parent.GetChildren()
32
33 for idx, loopNode := range siblings {
34 if loopNode.GetReference().(string) == dn {
35 return idx
36 }
37 }
38
39 return -1
40}
41
42func numericAcceptanceFunc(textToCheck string, lastChar rune) bool {
43 _, err := strconv.Atoi(textToCheck)

Callers 2

treePanelKeyHandlerFunction · 0.85
explorerPageKeyHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected