dict

package
v0.0.0-...-519aebc Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(config *idictconfig.Config, fs afero.Fs, options Options, uistarter func(string) error) func(*cobra.Command, []string) error

func Start

func Start(config *idictconfig.Config) func(string) error

func UnixMillNow

func UnixMillNow() int64

Types

type DictClient

type DictClient interface {
	Fetch(string) (error, wordset.Word)
	Guess(string) (error, []wordset.GuessWord)
	FetchCache(string) (error, wordset.Word)
}

type DictModel

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

func (DictModel) Init

func (m DictModel) Init() tea.Cmd

func (DictModel) Update

func (m DictModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (DictModel) View

func (m DictModel) View() string

type EuDictClient

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

func NewEuDictClient

func NewEuDictClient(config config.Config) (EuDictClient, error)

func (EuDictClient) Fetch

func (d EuDictClient) Fetch(text string) (error, wordset.Word)

func (EuDictClient) FetchCache

func (d EuDictClient) FetchCache(text string) (error, wordset.Word)

func (EuDictClient) Guess

func (d EuDictClient) Guess(text string) (error, []wordset.GuessWord)

type GuessMsg

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

type Options

type Options struct {
	Text *string
}

type VoiceMsg

type VoiceMsg struct {
}

Jump to

Keyboard shortcuts

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