walker

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 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