Documentation
¶
Overview ¶
Package hackernews shows the Hacker News front page via the Algolia API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HackerNews ¶
HackerNews lists front-page stories.
func (*HackerNews) Actions ¶
func (h *HackerNews) Actions() []widget.Action
Actions exposes opening the selected story in the system browser.
func (*HackerNews) Update ¶
func (h *HackerNews) Update(msg tea.Msg) tea.Cmd
Update handles navigation, fetch results and the refresh timer.
func (*HackerNews) View ¶
func (h *HackerNews) View() string
View renders the story list. Each story takes two lines when there is room: the title, then a dim metadata line.
Click to show internal directories.
Click to hide internal directories.