components

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModeSelector

type ModeSelector struct {
	Cursor  int
	Choices []string
}

func NewModeSelector

func NewModeSelector() *ModeSelector

func (*ModeSelector) Decrement

func (ms *ModeSelector) Decrement()

func (*ModeSelector) GetChoices

func (ms *ModeSelector) GetChoices() []string

func (*ModeSelector) GetCursor

func (ms *ModeSelector) GetCursor() int

func (*ModeSelector) Increment

func (ms *ModeSelector) Increment()

func (*ModeSelector) Selected

func (ms *ModeSelector) Selected() string

type QuoteTypeSelector

type QuoteTypeSelector struct {
	Cursor  int
	Choices []string
}

func NewQuoteTypeSelector

func NewQuoteTypeSelector() *QuoteTypeSelector

func (*QuoteTypeSelector) Decrement

func (qts *QuoteTypeSelector) Decrement()

func (*QuoteTypeSelector) GetChoices

func (qts *QuoteTypeSelector) GetChoices() []string

func (*QuoteTypeSelector) GetCursor

func (qts *QuoteTypeSelector) GetCursor() int

func (*QuoteTypeSelector) Increment

func (qts *QuoteTypeSelector) Increment()

func (*QuoteTypeSelector) Selected

func (qts *QuoteTypeSelector) Selected() string

type Selector

type Selector interface {
	Increment()
	Decrement()
	Selected() string
	GetChoices() []string
	GetCursor() int
}

Jump to

Keyboard shortcuts

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