tui

package
v0.0.0-...-cc8089b Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingField = errors.New("insert failed, Front and Back are mandatory fields")

Functions

func PlaceOverlay

func PlaceOverlay(x, y int, fg, bg string, shadow bool, opts ...WhitespaceOption) string

PlaceOverlay places fg on top of bg.

func StartTea

func StartTea() error

Types

type AddCardModel

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

func (AddCardModel) Init

func (m AddCardModel) Init() tea.Cmd

func (AddCardModel) Update

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

func (AddCardModel) View

func (m AddCardModel) View() string

type ListCardsModel

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

func (ListCardsModel) Init

func (m ListCardsModel) Init() tea.Cmd

func (ListCardsModel) Update

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

func (ListCardsModel) View

func (m ListCardsModel) View() string

type Model

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

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

type ReviewModel

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

func (ReviewModel) Init

func (m ReviewModel) Init() tea.Cmd

func (ReviewModel) Update

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

func (ReviewModel) View

func (m ReviewModel) View() string

type WhitespaceOption

type WhitespaceOption func(*whitespace)

WhitespaceOption sets a styling rule for rendering whitespace.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳