Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board [][]string
func (Board) TraverseConcurrent ¶
func (b Board) TraverseConcurrent(v ConcurrentVisitor)
type ConcurrentFinder ¶
type ConcurrentFinder struct {
Entries chan Entry
// contains filtered or unexported fields
}
func NewConcurrentVisitor ¶
func NewConcurrentVisitor(dict Dictionary) *ConcurrentFinder
func (*ConcurrentFinder) Done ¶
func (cf *ConcurrentFinder) Done()
type ConcurrentVisitor ¶
type ConcurrentVisitor interface {
Visitor
Done()
}
type Coordinate ¶
type Coordinate []int
func (Coordinate) Col ¶
func (c Coordinate) Col() int
func (Coordinate) Row ¶
func (c Coordinate) Row() int
func (Coordinate) String ¶
func (c Coordinate) String() string
type Dictionary ¶
func NewDictionary ¶
func NewDictionary() (Dictionary, error)
func (Dictionary) Exists ¶
func (d Dictionary) Exists(word []rune) (prefixExists, wordExists bool)
type Entry ¶
type Entry struct {
Word string
Path []Coordinate
}
type WordFinder ¶
type WordFinder struct {
Found []Entry
// contains filtered or unexported fields
}
func NewVisitor ¶
func NewVisitor(dict Dictionary) *WordFinder
Click to show internal directories.
Click to hide internal directories.