func (l *Leaf) Traverse() {
	fmt.Printf("%v  ", l.value)
}
Traverse prints the value of the leaf.
package structural
import "fmt"
type Component interface {
	Traverse()
}
type Leaf struct {
	value int
}
func NewLeaf(value int) *Leaf {
	return &Leaf{value}
}