Discover Packages
goki.dev/ki/v2
walki
package
Version:
v2.0.0-dev0.0.3
Opens a new window with list of versions in this module.
Published: Sep 2, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package walki provides basic tree walking functions for iterative traversal
of the tree in up / down directions. As compared to the core Func methods
defined in ki package, these are for more dynamic, piecemeal processing.
Last returns the last node in the tree
LastChild returns the last child under given node, or node itself if no children
Next returns next node in the tree, nil if end
NextSibling returns next sibling or nil if none
Prev returns previous node in the tree -- nil if top
Source Files
¶
Click to show internal directories.
Click to hide internal directories.