model

package module
v0.0.0-...-84a43bd Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// application states
	TYPING      = iota // input tab
	CHOOSING           // language list tab
	TRANSLATING        // translation tab
	LOADING            // loading inside input tab

)

Variables

This section is empty.

Functions

func NewListItem

func NewListItem(title, abbreviation string) item

func Run

func Run(c Config)

Types

type Config

type Config interface {
	Langs() []list.Item
	Source() string
	Target() string
	RememberLastLangs(source, target string)
}

Jump to

Keyboard shortcuts

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