textinput

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateErrorModel added in v0.1.1

func CreateErrorModel(err error) model

CreateErrorModel generates a model for handling error input. It initializes a new text input, sets focus on it, and limits the character input to 156. The width of the text input is set to 20. It returns a model with the initialized text input, the error message, and an exit flag set to true.

func InitialTextInputModel

func InitialTextInputModel(output *Output, header string, program *program.ProjectConfig) model

Types

type Output

type Output struct {
	Output string
}

Jump to

Keyboard shortcuts

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