(date time.Time)
| 50 | } |
| 51 | |
| 52 | func (p Post) Before(date time.Time) bool { |
| 53 | return p.PublishDate.Before(date) |
| 54 | } |
| 55 | |
| 56 | func (p Post) Compare(other Post) int { |
| 57 | if p.PublishDate.Before(other.PublishDate) { |
no outgoing calls
no test coverage detected