tui

package
v0.0.0-...-61845ed Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NormalMode = "NORMAL"
	EditMode   = "EDIT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dim

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

type Mode

type Mode string

type Model

type Model struct {
	Focus int

	MethodInput     textinput.Model
	URLInput        textinput.Model
	HeaderBodyInput textarea.Model
	Result          viewport.Model
	Ready           bool //for viewport
	Dimension       Dim
	Mode            Mode
	RequestType     string
	HeaderValues    string
	IsHeader        bool
	BodyValues      string
	// contains filtered or unexported fields
}

func NewModel

func NewModel() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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