Documentation
¶
Index ¶
- type Database
- func (d *Database) Close()
- func (d *Database) HeadWord() (string, error)
- func (d *Database) MaxPos() (_ int, e error)
- func (d *Database) MaxScore() (_ int, e error)
- func (d *Database) MoveWord(word string, dest int) (e error)
- func (d *Database) Populate(focus string, words []string) (e error)
- func (d *Database) SetFocus(tx *sql.Tx, focus string) (e error)
- func (d *Database) UpdateScoreAndPos(word string, score, dest int) (e error)
- func (d *Database) WordAt(pos int) (_ string, e error)
- func (d *Database) WordPos(word string) (_ int, e error)
- func (d *Database) WordScore(word string) (_ int, e error)
- type ErrNotFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) UpdateScoreAndPos ¶
type ErrNotFound ¶
type ErrNotFound error
Click to show internal directories.
Click to hide internal directories.