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

ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package ui is the Bubble Tea program: a state machine of feeds → articles → reader, with a search view reachable from either list, whose network, indexing, search and rendering work all runs in commands, so Update never blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is the root Bubble Tea model.

func New

func New(opts Options) Model

New builds the model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init starts the background prefetch.

func (Model) Update

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

Update handles one message.

func (Model) View

func (m Model) View() string

View renders the active screen.

type Options

type Options struct {
	Feeds    []catalog.Feed
	Client   *fetch.Client
	Style    string // glamour standard style: "dark", "light", "notty", …
	Prefetch bool   // load every feed in the background at startup
}

Options configures the program.

Jump to

Keyboard shortcuts

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