models

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidArpabet = errors.New("invalid arpabet")

Functions

This section is empty.

Types

type Word

type Word struct {
	Word    string `gorm:"type:text collate nocase;index"`
	Arpabet string `gorm:"-"`
	Number  string `gorm:"index"`
	Guess   bool   `gorm:"-"`
}

func FromCmudict

func FromCmudict(line []byte) (*Word, error)

func FromString

func FromString(w string) *Word

func (Word) TableName

func (Word) TableName() string

Jump to

Keyboard shortcuts

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