repl

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackToSentence

func BackToSentence(proccesedWords []string) string

func DeepHelp

func DeepHelp()

func Help

func Help()

func Replfunc

func Replfunc(state *AppState)

Types

type AppState

type AppState struct {
	Db              *database.Queries
	CurrentLanguage database.Language
}

func (*AppState) CustomLanguage

func (state *AppState) CustomLanguage() error

func (*AppState) DeletetLang

func (state *AppState) DeletetLang() error

stdin scan

func (*AppState) GetConfig

func (state *AppState) GetConfig() (Config, error)

func (*AppState) Learn

func (state *AppState) Learn(words []string) (string, error)

func (*AppState) LearnFromFile

func (state *AppState) LearnFromFile(filepath []string) (string, error)

func (*AppState) ListByFrequency

func (state *AppState) ListByFrequency() error

func (*AppState) LookUpWord

func (state *AppState) LookUpWord(word string) (string, error)

func (*AppState) Mark

func (state *AppState) Mark(words []string) error

func (*AppState) Markfrequency

func (state *AppState) Markfrequency() error

func (*AppState) SaveConfig

func (state *AppState) SaveConfig(config Config) error

func (*AppState) Scan

func (state *AppState) Scan(r io.Reader) []string

stdin scan

func (*AppState) SelectLang

func (state *AppState) SelectLang() (database.Language, error)

stdin scan

func (*AppState) UnMark

func (state *AppState) UnMark(words []string) error

type Config

type Config struct {
	LastLanguage string `json:"last_language"`
}

Jump to

Keyboard shortcuts

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