Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AAAStartNode ¶
type AAAStartNode struct{}
Defines a start node as a node whose name is AAA
func (AAAStartNode) Determine ¶
func (a AAAStartNode) Determine(name string) bool
type Direction ¶
type Direction int
Direction represents the left and right options that are available
func ParseDirectionsLine ¶
type EndNodeDefiner ¶
Interface to determine if a Node is a end node
type GhostEndNode ¶
type GhostEndNode struct{}
Defines an end node as a node whose name ends in Z
func (GhostEndNode) Determine ¶
func (g GhostEndNode) Determine(name string) bool
type GhostStartNode ¶
type GhostStartNode struct{}
Defines a start node as a node whose name ends in A
func (GhostStartNode) Determine ¶
func (g GhostStartNode) Determine(name string) bool
type Node ¶
func NewNode ¶
func NewNode( name string, snd StartNodeDefiner, end EndNodeDefiner, ) *Node
func ParseNodes ¶
func ParseNodes( data string, snd StartNodeDefiner, end EndNodeDefiner, ) (startNodes []*Node, err error)
func (Node) IsStartNode ¶
type StartNodeDefiner ¶
Interface to determine if a Node is a start node
type ZZZEndNode ¶
type ZZZEndNode struct{}
Defines an end node as a node whose name is ZZZ
func (ZZZEndNode) Determine ¶
func (z ZZZEndNode) Determine(name string) bool
Click to show internal directories.
Click to hide internal directories.