(posts []Post, id int)
| 162 | } |
| 163 | |
| 164 | func (Blog) WithID(posts []Post, id int) Post { |
| 165 | for _, post := range posts { |
| 166 | if post.ID == id { |
| 167 | return post |
| 168 | } |
| 169 | } |
| 170 | return Post{} |
| 171 | } |
nothing calls this directly
no outgoing calls
no test coverage detected