Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { AddAdjective(word models.Adjective) error AddNoun(word models.Noun) error AddVerb(word models.Verb) error RemoveAdjective(id int) error RemoveNoun(id int) error RemoveVerb(id int) error GetAdjectiveIds() ([]int, error) GetNounIds(begin, end, alone bool) ([]int, error) GetVerbIds() ([]int, error) GetPronounIds(plural bool) ([]int, error) GetSentenceIds() ([]int, error) GetAdjective(id int) (*models.Adjective, error) GetNoun(id int) (*models.Noun, error) GetVerb(id int) (*models.Verb, error) GetPronoun(id int) (*models.Pronoun, error) GetSentence(id int) (string, error) InitData([]models.Adjective, []models.Noun, []models.Verb, []models.Pronoun, []string) error IsNew() bool Close() }
Click to show internal directories.
Click to hide internal directories.