ui

package
v0.0.0-...-988901e Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompt

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

Prompt is a REPL-style user interface type.

func NewPrompt

func NewPrompt(vocab *vocabulary.Vocabulary, trlrs []translation.Translator) *Prompt

NewPrompt initializes a new prompt-type user interface.

func (*Prompt) Run

func (p *Prompt) Run()

Run starts the interface. While running, the interface will take care of displaying and saving translations.

type UserInterface

type UserInterface interface {
	Run(*vocabulary.Vocabulary, []translation.Translator)
}

UserInterface is the interface all UI types must satisfy.

Jump to

Keyboard shortcuts

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