dict

package
v0.0.0-...-cbaec50 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DicMap

type DicMap map[string][]Word

type Dict

type Dict interface {
	Convert(word string) ([]string, error)
}

type Entry

type Entry struct {
	Label string
	Words []Word
}

type LispDict

type LispDict struct {
	YearFormat     string
	MonthFormat    string
	DateFormat     string
	DateTimeFormat string
	Location       *time.Location
}

func NewLispDict

func NewLispDict(yf, mf, df, dtf, tz string) *LispDict

func (*LispDict) Convert

func (d *LispDict) Convert(word string) ([]string, error)

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(file *os.File) (*Reader, error)

func (*Reader) Read

func (r *Reader) Read() (*Entry, error)

func (*Reader) ReadAll

func (r *Reader) ReadAll() ([]*Entry, error)

func (*Reader) ReadMap

func (r *Reader) ReadMap() (DicMap, error)

type SkkDict

type SkkDict struct {
	// contains filtered or unexported fields
}

func NewSkkDict

func NewSkkDict(src, dir string, update bool) (*SkkDict, bool, error)

func (*SkkDict) Convert

func (d *SkkDict) Convert(word string) ([]string, error)

type Word

type Word struct {
	Text string
	Desc string
}

func (Word) String

func (w Word) String() string

Jump to

Keyboard shortcuts

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