focustree

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagType

type FlagType int
const (
	None FlagType = iota
	Focus
	Skip
)

type Node

type Node interface {
	GetFlag() FlagType
	GetChildren() []Node
	IsLeaf() bool
	Warning(info string)
}

func ExctractSelectedLeaves

func ExctractSelectedLeaves(tree Node) []Node

ExctractSelectedLeaves goes through the tree and find leaves whose data should be processed according to the flag (FOCUS, PENDING)

Jump to

Keyboard shortcuts

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