model

package
v0.0.0-...-ab80a50 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 21 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

View Source
var (

	// errors
	ErrorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("1")).Bold(true)
)

Functions

func Run

func Run(c Config)

Types

type Config

type Config interface {
	Source() string
	Target() string
	Engine() string
	Backend() string
	RememberLastSettings(source, target string)
}

Jump to

Keyboard shortcuts

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