walki

package
v2.0.0-dev0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Last

func Last(nd ki.Ki) ki.Ki

Last returns the last node in the tree

func LastChild

func LastChild(nd ki.Ki) ki.Ki

LastChild returns the last child under given node, or node itself if no children

func Next

func Next(nd ki.Ki) ki.Ki

Next returns next node in the tree, nil if end

func NextSibling

func NextSibling(nd ki.Ki) ki.Ki

NextSibling returns next sibling or nil if none

func Prev

func Prev(nd ki.Ki) ki.Ki

Prev returns previous node in the tree -- nil if top

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL