walker

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 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
	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 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