Help us shape the future of Go! Take the 2026 Go Developer Survey

views

package
v0.0.0-...-a128bc9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorFg

func ColorFg(val, color string) string

func Layout

func Layout(title string, content string, m TUIMain) string

func MakeFgStyle

func MakeFgStyle(fg, bg string) func(string) string

func RenderDocumentHeadings

func RenderDocumentHeadings(m TUIMain) string

func SelectChoiceSettings

func SelectChoiceSettings(msg tea.Msg, m TUIMain) (tea.Model, tea.Cmd)

Types

type KeyMap

type KeyMap struct {
	Quit  key.Binding
	Enter key.Binding
	Back  key.Binding
}

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

type TUIMain

type TUIMain struct {
	Url    textinput.Model
	Result *audit.HtmlDocumentAudit
	Keys   KeyMap
	Help   help.Model
	Error  error
	// contains filtered or unexported fields
}

func NewInstance

func NewInstance() TUIMain

func (TUIMain) Init

func (m TUIMain) Init() tea.Cmd

func (TUIMain) Update

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

func (TUIMain) View

func (m TUIMain) View() string

Jump to

Keyboard shortcuts

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