| 71 | } |
| 72 | |
| 73 | type Comment struct { |
| 74 | ID int |
| 75 | AuthorName string |
| 76 | Content string |
| 77 | CommentDate time.Time |
| 78 | Upvotes int |
| 79 | } |
| 80 | |
| 81 | func (c Comment) Upvoted() bool { |
| 82 | return c.Upvotes > 0 |
nothing calls this directly
no outgoing calls
no test coverage detected