walker

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: MIT Imports: 0 Imported by: 19

Documentation

Overview

Package walker declares walking behavior

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Visitor

type Visitor interface {
	EnterNode(w Walkable) bool             // EnterNode is invoked for each node encountered by Walk.
	GetChildrenVisitor(Key string) Visitor // GetChildrenVisitor is invoked at every node parameter that contains children nodes
	LeaveNode(w Walkable)                  // LeaveNode is invoked after node processed
}

Visitor interface

type Walkable added in v0.3.0

type Walkable interface {
	Walk(v Visitor)
}

Walkable interface

Every node must implement this interface

Jump to

Keyboard shortcuts

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