depp

No frills static page generator for Git repositories

git clone https://git.8pit.net/depp.git

 1package main
 2
 3// byModified sorts Repos by their modified date (latest first).
 4type byModified []Repo
 5
 6func (t byModified) Len() int {
 7	return len(t)
 8}
 9
10func (t byModified) Swap(i, j int) {
11	t[i], t[j] = t[j], t[i]
12}
13
14func (t byModified) Less(i, j int) bool {
15	return t[i].Modified.After(t[j].Modified)
16}