Documentation
¶
Overview ¶
Package visitor is an example of the Visitor Pattern.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type City ¶
type City struct {
// contains filtered or unexported fields
}
City implements a collection of places to visit.
type People ¶
type People struct {
}
People implements the Visitor interface.
func (*People) VisitBurgerBar ¶
VisitBurgerBar implements visit to BurgerBar.
func (*People) VisitPizzeria ¶
VisitPizzeria implements visit to Pizzeria.
func (*People) VisitSushiBar ¶
VisitSushiBar implements visit to SushiBar.
Click to show internal directories.
Click to hide internal directories.