Versions in this module Expand all Collapse all v1 v1.16.9 May 27, 2024 v1.16.8 May 24, 2024 v1.16.7 May 8, 2024 v1.16.6 May 8, 2024 v1.16.5 Apr 16, 2024 v1.16.4 Apr 10, 2024 v1.16.3 Mar 27, 2024 v1.16.2 Mar 20, 2024 v1.16.1 Feb 18, 2024 v1.16.0 Jan 24, 2024 v1.15.8 Jan 6, 2024 v1.15.7 Dec 10, 2023 v1.15.6 Dec 3, 2023 Changes in this version + type Author struct + Email string + FirstName string + ID int + LastName string + Profile UserProfile + func (a Author) FullName() string + func (a Author) IsAdmin() bool + type Blog struct + Authors map[int]Author + Posts []Post + TotalLikes int + TotalPosts int + TotalViews int + func ExampleData() Blog + func (Blog) Add(a, b float64) float64 + func (Blog) HasTag(post Post, tag string) bool + func (Blog) IsAdmin(author Author) bool + func (Blog) IsZero(post Post) bool + func (Blog) Sub(a, b float64) float64 + func (Blog) Title(post Post) string + func (Blog) WithID(posts []Post, id int) Post + func (b Blog) PopularPosts() []Post + func (b Blog) RecentPosts() []Post + func (b Blog) TotalComments() int + func (b Blog) TotalUpvotes() int + type Comment struct + AuthorName string + CommentDate time.Time + Content string + ID int + Upvotes int + func (c Comment) AuthorEmail() string + func (c Comment) Upvoted() bool + type Post struct + Author Author + Comments []Comment + Content string + ID int + Likes int + PublishDate time.Time + Tags []string + Title string + func (p Post) After(date time.Time) bool + func (p Post) Before(date time.Time) bool + func (p Post) Compare(other Post) int + func (p Post) Equal(other Post) bool + func (p Post) IsZero() bool + func (p Post) Published() bool + type UserProfile struct + Biography string + Birthday time.Time + Website string + func (u UserProfile) Age() int