context

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgramContext

type ProgramContext struct {
	Api                *deeplapi.DeeplAPI
	Keys               keys.KeyMap
	ScreenWidth        int
	ScreenHeight       int
	Styles             *styles.Styles
	SourceLanguage     *deeplapi.Language
	TargetLanguage     *deeplapi.Language
	SourceText         string
	Formality          string
	TranslationResult  *deeplapi.TranslateResp
	AvailableLanguages utils.AvailableLanguages
	InsertMode         bool
}

func New

func New() *ProgramContext

Jump to

Keyboard shortcuts

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