walker

package
v0.0.0-...-6a25f69 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT, MIT Imports: 0 Imported by: 0

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
	LeaveNode(w Walkable)

	EnterChildNode(key string, w Walkable)
	LeaveChildNode(key string, w Walkable)

	EnterChildList(key string, w Walkable)
	LeaveChildList(key string, w Walkable)
}

Visitor interface

type Walkable

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