search

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderInput

func RenderInput(m model) (string, string)

RenderInput renders the input view.

func RenderSelection

func RenderSelection(m model) string

RenderSelection renders the selection menu.

func SearchCommand

func SearchCommand() (string, error)

func UpdateInput

func UpdateInput(msg tea.Msg, m model) (tea.Model, tea.Cmd)

UpdateInput handles text input updates.

func UpdateSelection

func UpdateSelection(msg tea.Msg, m model) (tea.Model, tea.Cmd)

UpdateSelection handles navigation in the selection menu.

Types

type Resource

type Resource struct {
	Count    int         `json:"count"`
	Next     string      `json:"next"`
	Previous interface{} `json:"previous"`
	Results  []Result    `json:"results"`
}

type Result

type Result struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Result is a resources list result.

Jump to

Keyboard shortcuts

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