Sort ... order by Date desc
()
| 93 | |
| 94 | // Sort ... order by Date desc |
| 95 | func (r *RssClientView) Sort() { |
| 96 | sort.Slice(r.Contents, func(i, j int) bool { |
| 97 | return r.Contents[i].Date.Unix() > r.Contents[j].Date.Unix() |
| 98 | }) |
| 99 | } |
| 100 | |
| 101 | // RssSubscribe 订阅关系表:群组-RSS频道 |
| 102 | type RssSubscribe struct { |
no outgoing calls
no test coverage detected