Documentation ¶
Overview ¶
Package frontpage contains the page that's displayed on the Hacker News window when it's first started.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentsViewer ¶
type CommentsViewer interface {
ViewComments(post *Post)
}
CommentsViewer describes the parent that can view posts.
type Post ¶
type Post struct { *adaptive.LoadablePage // contains filtered or unexported fields }
Post is a HackerNews post widget.
func (*Post) ConnectShowComments ¶
func (p *Post) ConnectShowComments(f func())
ConnectShowComments connects f to be called when the user clicks the comments button. Without calling this, the comments button is hidden.
func (*Post) Item ¶
func (p *Post) Item() *hackernews.Item
Item returns the post's HackerNews Item, or nil if the Post doesn't yet have one.
func (*Post) SetItem ¶
func (p *Post) SetItem(item *hackernews.Item)
Click to show internal directories.
Click to hide internal directories.