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, ScreenHeight int // Size of entire screen ContentWidth, ContentHeight int // Size of the space that is available to a view Styles *styles.Styles SourceLanguage, TargetLanguage *deeplapi.Language SourceText string Formality string TranslationResult *deeplapi.TranslateResp AvailableLanguages utils.AvailableLanguages InsertMode bool }
func New ¶
func New() *ProgramContext
Click to show internal directories.
Click to hide internal directories.