Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { Title string Thumbnail string Text string PublishDate time.Time Comments Loading bool Engagement int Likes int }
func (*Article) AddComment ¶
func (*Article) CalculateEngagement ¶
func (c *Article) CalculateEngagement()
func (*Article) RemoveLike ¶
func (c *Article) RemoveLike()
type Articles ¶
func NewArticles ¶
func NewArticles() *Articles
func (*Articles) AddArticle ¶
func (*Articles) SortByEngagement ¶
func (a *Articles) SortByEngagement()
type Comment ¶
type Comment struct { Content string Author string Published time.Time Likes int Replies []Comment Loading bool vugu.Builder }
func (*Comment) RemoveLike ¶
func (c *Comment) RemoveLike()
type Navigation ¶
type Navigation struct {}
Click to show internal directories.
Click to hide internal directories.