browser

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

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 used to store the state of the application

func New

func New(cfg config.Config) Model

New returns a new model with some sensible defaults

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model, there are no I/O operations needed

func (Model) Update

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

Update handles the terminal size, modifying rss items and modifying tabs

func (Model) View

func (m Model) View() string

View renders the tab bar, the active tab and the status bar

Jump to

Keyboard shortcuts

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