MCPcopy Create free account
hub / github.com/expr-lang/expr / RecentPosts

Method RecentPosts

test/playground/env.go:97–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97func (b Blog) RecentPosts() []Post {
98 var posts []Post
99 for _, post := range b.Posts {
100 if post.Published() {
101 posts = append(posts, post)
102 }
103 }
104 return posts
105}
106
107func (b Blog) PopularPosts() []Post {
108 var posts []Post

Callers

nothing calls this directly

Calls 1

PublishedMethod · 0.80

Tested by

no test coverage detected