Ver Fonte

Add doc comment for GetTreeNodeByReference

rigormorrtiss há 4 anos atrás
pai
commit
7eac041b80
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      ui/treeviews.go

+ 1 - 0
ui/treeviews.go

@@ -45,6 +45,7 @@ func NewTextChannelTreeNode(c discord.Channel) (n *tview.TreeNode) {
 	return
 }
 
+// GetTreeNodeByReference gets the TreeNode that has reference r from the given treeview.
 func GetTreeNodeByReference(r interface{}, treeV *tview.TreeView) (mn *tview.TreeNode) {
 	treeV.GetRoot().Walk(func(n, _ *tview.TreeNode) bool {
 		if n.GetReference() == r {