word

package
v0.0.0-...-9752507 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(word Word) error

Add adds a single word to the word database.

func Exit

func Exit()

Exit closes the database.

func Init

func Init(dbname string) error

Init initializes and opens the database.

Types

type Word

type Word struct {
	gorm.Model  `json:"-"`
	Word        string `json:"word"`
	Category    int    `json:"category,omitempty"`
	PicturePath string `json:"picturePath,omitempty"`
}

Word contains a single word

func Find

func Find() []Word

Find finds all words in database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL